Sagemaker 'NoneType object' issue with data in 'walkthrough-classification-mxnet-sagemaker' example
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- aws, python
調査の方向性
examples/walkthrough-classification-mxnet-sagemaker.md から始め、報告されている data.npz のセットアップを使って examples/nets/SageMaker_mx-lenet.ipynb の2番目のセルを実行します。呼び出しを mx_lenet_sagemaker.py まで追跡し、特に prep_data と find_file を確認します。完了条件は、報告されている NoneType/read エラーなしで例が学習できることです。
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- Python
- スター
- 472
- フォーク
- 106
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
developmentseed/label-maker のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
developmentseed/label-maker#195 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
developmentseed/label-maker#186 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
developmentseed/label-maker#185 ·
-
Generalize Final data.npz output再び着手できるかも @martham93 が 2225 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
developmentseed/label-maker#181 · コメント 1 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
developmentseed/label-maker#180 · コメント 1 件 ·
developmentseed/label-maker の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
letsencrypt/cp-cps#353 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
PedestrianDynamics/pyFDS-Evac#394 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DOI-USGS/pywatershed#421 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
python-pillow/Pillow#10087 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信