NameError: name '_C' is not defined
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- jupyter-notebook, python, pytorch
調査の方向性
Google Colab で zero-shot-object-detection-with-grounding-dino.ipynb から始め、失敗を再現します。_C.ms_deform_attn_forward が呼び出されている /content/GroundingDINO/groundingdino/models/GroundingDINO/ms_deform_attn.py の 53 行目付近を調べます。完了条件は、Notebook の予測ステップが NameError なしで完了することです。
索引モデルが issue の本文から書いたものです。
説明
Search before asking
- I have searched the Roboflow Notebooks issues and found no similar bug report.
Notebook name
Below error is coming while running the colab file of zero-shot-object-detection-with-grounding-dino.ipynb in Google COLAB
from last few days, it was not there before.
FutureWarning: The device argument is deprecated and will be removed in v5 of Transformers.
UserWarning: torch.utils.checkpoint: the use_reentrant parameter should be passed explicitly. In version 2.5 we will raise an exception if use_reentrant is not passed. use_reentrant=False is recommended, but if you need to preserve the current default behavior, you can pass use_reentrant=True. Refer to docs for more details on the differences between the two variants.
UserWarning: None of the inputs have requires_grad=True. Gradients will be None
NameError Traceback (most recent call last)
in <cell line: 0>()
11 image_source, image = load_image(IMAGE_PATH)
12
---> 13 boxes, logits, phrases = predict(
14 model=model,
15 image=image,
22 frames
/content/GroundingDINO/groundingdino/models/GroundingDINO/ms_deform_attn.py in forward(ctx, value, value_spatial_shapes, value_level_start_index, sampling_locations, attention_weights, im2col_step)
51 ):
52 ctx.im2col_step = im2col_step
---> 53 output = _C.ms_deform_attn_forward(
54 value,
55 value_spatial_shapes,
NameError: name '_C' is not defined
Bug
NameError: name '_C' is not defined
Environment
Google Colab
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
- Yes I'd like to help by submitting a PR!
- 主要言語
- Jupyter Notebook
- スター
- 9.7k
- フォーク
- 1.5k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
roboflow/notebooks のほかの issue
-
zero-shot-object-detection-with-grounding-dino.ipynb can't render correctly対応中かも @rkrisa が 146 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
Minor Issue: The notebook tutorial is using the wrong model (yolov11s instead of RF-DETR)対応中かも @BillionClaw が 241 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 52/100
roboflow/notebooks の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
roboflow/supervision#2971 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
MagneticResonanceImaging/MRIReco.jl#356 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
cleanlab/cleanvision#282 ·