Sagemaker 'NoneType object' issue with data in 'walkthrough-classification-mxnet-sagemaker' example
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, python
- Domain
- cloud, machine-learning
Research direction
Start with examples/walkthrough-classification-mxnet-sagemaker.md and run the second cell of examples/nets/SageMaker_mx-lenet.ipynb using the reported data.npz setup. Trace the call into mx_lenet_sagemaker.py, especially prep_data and find_file; done means the example trains without the reported NoneType/read error.
Written by the indexing model from the issue text.
Description
I've been following the walkthough found here (albeit with a smaller bounding box), and have initiated a Sagemaker Notebook instance. The data.npz file is sitting in the sagemaker folder, and I'm having no problem reading it when running the relevant sections of mx_lenet_sagemaker.py in a new notebook on the instance, however when I run the second cell of SageMaker_mx-lenet I hit the following error:
ValueError: Error training sagemaker-mxnet-2018-07-08-18-12-13-217: Failed Reason: AlgorithmError: uncaught exception during training: 'NoneType' object has no attribute 'read'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/container_support/training.py", line 36, in start
fw.train()
File "/usr/local/lib/python2.7/dist-packages/mxnet_container/train.py", line 191, in train
model = user_module.train(**kwargs_to_pass)
File "/opt/ml/code/mx_lenet_sagemaker.py", line 92, in train
train_iter, val_iter = prep_data(data_path)
File "/opt/ml/code/mx_lenet_sagemaker.py", line 14, in prep_data
data = np.load(find_file(data_path, 'data.npz'))
File "/usr/local/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 402, in load
magic = fid.read(N)
AttributeError: 'NoneType' object has no attribute 'read'
After several hours trying different fixes I'm having little to no luck debugging, but was hoping you could check the example to ensure it runs fine when you attempt it?
- Dominant language
- Python
- Stars
- 471
- Forks
- 106
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from developmentseed/label-maker
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
developmentseed/label-maker#195 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
developmentseed/label-maker#186 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
developmentseed/label-maker#185 ·
-
Generalize Final data.npz outputMay be free again @martham93 claimed this 2281 days ago, and no pull request is open. Openenhancement
developmentseed/label-maker#181 · 1 comment · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
developmentseed/label-maker#180 · 1 comment ·
All issues in developmentseed/label-maker
Similar issues
-
00 - Bug component: numpy.linalg
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
521xueweihan/HelloGitHub#4543 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
emeryberger/CSrankings#15700 ·
Maintainers usually reply within 2 days
-
Bug | 工作不正常 Triage | 待检查
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
OneDragon-Anything/ZenlessZoneZero-OneDragon#3084 ·
Maintainers usually reply within 1 day
-
Task select patterns with uppercase letters never matchPossibly taken @manobhisriram claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day