aws / aws/amazon-sagemaker-examples

03c_pytorch_preprocessing.ipynb failed CI

Open
#2,309 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
11k
Forks
7k
Avg merge
8h 29m
Merged PRs (30d)
8

Description

Link to the notebook:
https://github.com/aws/amazon-sagemaker-examples/blob/master/prep_data/image_data_guide/03c_pytorch_preprocessing.ipynb

Error:

---------------------------------------------------------------------------
Exception encountered at "In [5]":
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
in
1 sample = tv.datasets.ImageFolder(
2 root='data_structured/train',
----> 3 transform=tv.transforms.ToTensor())
4
5 sample_resized = tv.datasets.ImageFolder(

/opt/conda/lib/python3.6/site-packages/torchvision/datasets/folder.py in __init__(self, root, transform, target_transform, loader, is_valid_file)
227 transform=transform,
228 target_transform=target_transform,
--> 229 is_valid_file=is_valid_file)
230 self.imgs = self.samples

/opt/conda/li

[...]

FileNotFoundError: [Errno 2] No such file or directory: 'data_structured/train'

Contributor guide

Open the contributing guide

Research direction

Open prep_data/image_data_guide/03c_pytorch_preprocessing.ipynb and inspect the setup leading to In [5], where torchvision.datasets.ImageFolder cannot find data_structured/train. Run the notebook or its CI check to reproduce the FileNotFoundError; done means the notebook completes that step without the missing-path failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python, pytorch
Domain
machine-learning, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.