Augmented data is stopping weight calculation and training.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 32/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
調査の方向性
まず元のマスクと拡張されたマスクの値と形状を比較し、次に47行目付近のweights.pyと、robosat/tools/train.pyおよびrobosat/losses.pyのトレーニングパスを読みます。拡張データセットを使って重みの計算とトレーニングの失敗を再現します。非互換なマスクデータまたは処理ステップが特定され、影響を受けるワークフローが報告されたエラーなしで完了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
@daniel-j-h Hello! I am working with Sentinel-2 data and successfully trained with 0.56 accuracy. Now I want to increase training data so I am trying data augmentation (rotation, zooming). I rotated and zoomed current data (I did the same for labels) with Keras library (ImageDataGenerator). New data has appropriate z/x/y names (continued from the last number of x).
While calculating weights when it comes to new data I am getting:
Traceback (most recent call last):
File "weights.py", line 69, in <module>
main(args.dataset)
File "weights.py", line 47, in main
counts += np.bincount(image.ravel(), minlength=num_classes)
ValueError: operands could not be broadcast together with shapes (2,) (142,) (2,)
What will be the reason? How should I solve it?
Furthermore, I noticed that original data represents binary data (print (image)), while new data has values up to 255. What is a problem?
When starting the training without calculating weights I am getting:
/pytorch/aten/src/THC/THCTensorScatterGather.cu:188: void THCudaTensor_scatterFillKernel(TensorInfo<Real, IndexType>, TensorInfo<long, IndexType>, Real, int, IndexType) [with IndexType = unsigned int, Real = float, Dims = -1]: block: [41,0,0], thread: [98,0,0] Assertion `indexValue >= 0 && indexValue < tensor.sizes[dim]` failed.
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/src/app/robosat/tools/__main__.py", line 58, in <module>
args.func(args)
File "/usr/src/app/robosat/tools/train.py", line 129, in main
train_hist = train(train_loader, num_classes, device, net, optimizer, criterion)
File "/usr/src/app/robosat/tools/train.py", line 185, in train
loss = criterion(outputs, masks)
File "/opt/venv/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__
result = self.forward(*input, **kwargs)
File "/usr/src/app/robosat/losses.py", line 106, in forward
errors_sorted, indices = torch.sort(max_margin_errors, descending=True)
RuntimeError: merge_sort: failed to synchronize: device-side assert triggered
- 主要言語
- Python
- スター
- 2.1k
- フォーク
- 384
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mapbox/robosat のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
-
Bringin own dataオープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
-
Error while trainingオープン
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Groundskeeper-robot/groundskeeper#248 ·
メンテナーはふだん 1 日以内に返信
-
`pull` silently ignores unknown service names and exits 0対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
containers/podman-compose#1640 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
debpalash/VoiceStudio#4550 ·
メンテナーはふだん 1 日以内に返信
-
fundamentals step:6
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
voantony/OpenCourtVision#244 ·
メンテナーはふだん 1 日以内に返信