-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grounding_dino_model.predict_with_classes 'NameError: name '_C' is not defined' #450
Comments
hello, maybe you should try to set CUDA Runtime before compiling the environment, could you check the env param |
thanks for the quick response. I really appreciate ;) I fixed this by having to cd to Grounding Dino and build it again and afterwards it works :) |
Already done (maybe should double check again...). If I manage to find the time I will retest the build and keep you posted. I think I builded with CUDA_HOME but maybe I did not have cython when I first build. |
I have encountered this issue while using Docker, but not otherwise. However, I have managed to fix it on my end. When the script is trying to run
so I checked
even though running the same command outside the container showed additional directories, including
Solution: add the line
and don't forget to set your |
I am currently trying the following note book from colab (https://colab.research.google.com/github/roboflow-ai/notebooks/blob/main/notebooks/automated-dataset-annotation-and-evaluation-with-grounding-dino-and-sam.ipynb#scrollTo=LoD2bIptG-qO) but in local (linux container).
I can do all the steps until :
# detect objects detections = grounding_dino_model.predict_with_classes( image=image, classes=enhance_class_name(class_names=CLASSES), box_threshold=BOX_TRESHOLD, text_threshold=TEXT_TRESHOLD )
However I get 'NameError: name '_C' is not defined', I do have cython in my environement.
Please note that my 'torch.cuda.is_available()' does return true.
Did anyone face that issue with grounding_dino_model.predict_with_classe?
The text was updated successfully, but these errors were encountered: