Problem with the installation of grounding DINO : No module name torch #96
Unanswered
Tristan263
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Just commenting to say I am experiencing exactly the same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
change |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello everyone,
I'm reaching out for assistance as I've already tried many solutions without resolving my issue. Last week, I successfully installed Grounded SAM2 on my PC for testing, and everything worked well. However, when I tried to reinstall the model this week on the same PC (which I had reset for other purposes), I'm unable to install Grounding DINO.
I've followed the repository instructions and installed all the necessary components in my virtual environment just like the first time, but I keep getting the error: "no module named torch" (log attached). I've properly installed torch with CUDA and the recommended versions, created new virtual environments, re-cloned the repository, and even reinstalled Python, CUDA, and my C compiler, but nothing changes - I always get the same error!
I'm open to any suggestions, even the smallest ones. I've also attached a list of the libraries I have installed. It's likely that this is my own error, either due to oversight or incorrect handling.
Thank you in advance for your help!
command use for installation : pip install --no-build-isolation -e grounding_dino
PS D:\Grounding_SAMV2\Grounded-SAM-2> pip list
Package Version Editable project location
addict 2.4.0
antlr4-python3-runtime 4.9.3
certifi 2025.4.26
charset-normalizer 3.4.1
colorama 0.4.6
contourpy 1.3.2
cycler 0.12.1
defusedxml 0.7.1
filelock 3.18.0
fonttools 4.57.0
fsspec 2025.3.2
huggingface-hub 0.30.2
hydra-core 1.3.2
idna 3.10
imageio 2.37.0
intel-openmp 2021.4.0
iopath 0.1.10
Jinja2 3.1.6
kiwisolver 1.4.8
lazy_loader 0.4
MarkupSafe 3.0.2
matplotlib 3.10.1
mkl 2021.4.0
mpmath 1.3.0
networkx 3.4.2
numpy 1.26.4
omegaconf 2.3.0
opencv-python 4.11.0.86
packaging 25.0
pillow 11.2.1
pip 25.1
platformdirs 4.3.7
portalocker 3.1.1
pycocoevalcap 1.2
pycocotools 2.0.8
pyparsing 3.2.3
python-dateutil 2.9.0.post0
pywin32 310
PyYAML 6.0.2
regex 2024.11.6
requests 2.32.3
safetensors 0.5.3
SAM-2 1.0 D:\Grounding_SAMV2\Grounded-SAM-2
scikit-image 0.25.2
scipy 1.15.2
setuptools 80.0.0
six 1.17.0
supervision 0.25.1
sympy 1.14.0
tbb 2021.11.0
tifffile 2025.3.30
timm 1.0.15
tokenizers 0.21.1
tomli 2.2.1
torch 2.3.1+cu121
torchvision 0.18.1+cu121
tqdm 4.67.1
transformers 4.51.3
typing_extensions 4.13.2
urllib3 2.4.0
wheel 0.45.1
yapf 0.43.0
log_error_grounding_dino.txt
Beta Was this translation helpful? Give feedback.
All reactions