求指导name 'load_model' is not defined这个报错怎么解决 #75
Unanswered
Zaneze2024
asked this question in
Q&A
Replies: 4 comments 2 replies
|
遇到相同的问题,如何解决呢 |
0 replies
0 replies
|
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? |
2 replies
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


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
这个报错怎么解决啊
All reactions