CSAILVision / CSAILVision/NetDissect
ZeroDivisionError: centered_arange step size is 0
- 主要言語
- Python
- スター
- 455
- フォーク
- 114
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In `upsample.py` line 352, the step size (3rd param) passed to `np.arange` is 0, yielding a `ZeroDivisionError`. This is caused by `t` having value 1, and `reduction` having value 2: `1 // 2 = 0`. The fieldmap is `((0,0), (4,4), (1,1))`.
The conv layer that is being analyzed has a 4x4 kernel, 4 output channels, and a stride of 1. Its input size is 3x120x120, the output size is 4x117x117.
I am going to debug this further but just wanted to share this already.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
upsample.py の352行目から始め、報告されている fieldmap、kernel、stride、入力/出力サイズを使って centered_arange を追跡します。t=1 かつ reduction=2 のケースを再現し、計算された np.arange の step がゼロの場合に期待される動作を判断します。ケースで ZeroDivisionError が発生しなくなり、関連する動作が適切なテストでカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- numpy, python
- 領域
- computer-vision, machine-learning
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100