求指导name 'load_model' is not defined这个报错怎么解决 #75
Replies: 4 comments 2 replies
-
|
遇到相同的问题,如何解决呢 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
It seems that you did not download the .pth model file. Could you follow https://github.com/BAAI-Agents/Cradle/blob/main/docs/envs/rdr2.md to install grounding dino and see whether the error still exists? |
Beta Was this translation helpful? Give feedback.
-
|
This error exsits in try:
from groundingdino.util.inference import load_model, load_image // run error.
except:
passSo we have to install conda activate cradle-dev
git clone https://github.com/IDEA-Research/GroundingDINO.git
cd GroundingDINO/then copy the GroundingDINO/groundingdino to the sys.path. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
self.detect_model = load_model("./cache/GroundingDINO_SwinB_cfg.py", "./cache/groundingdino_swinb_cogcoor.pth")
NameError: name 'load_model' is not defined
这个报错怎么解决啊
Beta Was this translation helpful? Give feedback.
All reactions