IndexError when preprocessing an empty image or video list
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 74/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
is_valid_image_imagelist から始めて、image[0] または video[0] をインデックスする画像/動画の前処理パスを追跡してください。関連する pull request を確認してコンテキストを把握し、その後、空のリストのカバレッジを追加して、前処理が IndexError ではなく明確なエラーを発生させることを検証してください。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Calling image/video preprocessing with an empty list raises IndexError because is_valid_image_imagelist([]) returns True (all([]) is True) and the code then indexes image[0] / video[0].
Reproduction
Empty list currently passes the validity check, then crashes on image[0].
Expected behavior
An empty list should not be treated as a valid image list, and preprocess should raise a clear error instead of IndexError.
Related
- 主要言語
- Python
- スター
- 34.6k
- フォーク
- 7.4k
- 平均マージ
- 3日 7時間
- マージ済み PR(30日)
- 73
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
huggingface/diffusers のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
huggingface/diffusers#14837 ·
-
bug needs-env-info pipelines
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
huggingface/diffusers#14794 ·
-
bug needs-code-example needs-env-info pipelines
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
huggingface/diffusers#14780 · コメント 1 件 ·
-
bug pipelines
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
huggingface/diffusers#14769 · コメント 1 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
huggingface/diffusers#14639 ·
huggingface/diffusers の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
stephrobert/dsoxlab#238 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sublimehq/package_control#1780 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nwg-piotr/nwg-displays#145 ·