aws / amazon-sagemaker-examples

Example 📓 Jupyter notebooks that demonstrate how to build, train, and deploy machine learning models using 🧠 Amazon SageMaker.
https://sagemaker-examples.readthedocs.io
Apache License 2.0
10.06k stars 6.76k forks source link

FileNotFoundError; object_detection_birds.ipynb #1572

Closed ngluna closed 3 years ago

ngluna commented 4 years ago

Folder and .txt file: "CUB_200_2011/classes.txt" is missing in notebook: https://github.com/awslabs/amazon-sagemaker-examples/blob/master/introduction_to_amazon_algorithms/object_detection_birds/object_detection_birds.ipynb

To recreate issue:

  1. Create and open a SageMaker Notebook Instance
  2. https://github.com/awslabs/amazon-sagemaker-examples.git
  3. Open and "Run All" notebook: object_detection_birds.ipynb

When using Pandas to read in the .txt file:
classes_df = pd.read_csv(CLASSES_FILE, sep=' ', names=CLASS_COLS, header=None)

Notebook returns:

FileNotFoundError: [Errno 2] File CUB_200_2011/classes.txt does not exist: 'CUB_200_2011/classes.txt'

ng-j-p commented 3 years ago

This has been fixed in this PR: https://github.com/aws/amazon-sagemaker-examples/pull/1593/files