aws / aws/amazon-sagemaker-examples

object_detection_birds.ipynb failed CI

Open
#2,395 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/introduction_to_amazon_algorithms/object_detection_birds/object_detection_birds.ipynb

Error:

---------------------------------------------------------------------------
Exception encountered at "In [16]":
---------------------------------------------------------------------------
ParamValidationError Traceback (most recent call last)
in
3 validation_channel = prefix + '/validation'
4
----> 5 sess.upload_data(path='birds_ssd_sample_train.rec', bucket=bucket, key_prefix=train_channel)
6 sess.upload_data(path='birds_ssd_sample_val.rec', bucket=bucket, key_prefix=validation_channel)
7

/usr/local/lib/python3.7/site-packages/sagemaker/session.py in upload_data(self, path, bucket,

[...]

Invalid bucket name "": Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$" or be an ARN matching the regex "^arn:(aws).*:s3:[a-z\-0-9]+:[0-9]{12}:accesspoint[/:][a-zA-Z0-9\-]{1,63}$|^arn:(aws).*:s3-outposts:[a-z\-0-9]+:[0-9]{12}:outpost[/:][a-zA-Z0-9\-]{1,63}[/:]accesspoint[/:][a-zA-Z0-9\-]{1,63}$"

Contributor guide

Open the contributing guide

Research direction

Open introduction_to_amazon_algorithms/object_detection_birds/object_detection_birds.ipynb and inspect cell In [16], especially the sess.upload_data calls and bucket value. Run the notebook or its CI validation to confirm how the placeholder bucket is handled. Done means the notebook no longer fails with the invalid bucket-name error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.