Skip to content
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

ModuleNotFoundError: No module named 'dinov2' #18

Open
zfkdsg opened this issue Dec 26, 2024 · 1 comment
Open

ModuleNotFoundError: No module named 'dinov2' #18

zfkdsg opened this issue Dec 26, 2024 · 1 comment

Comments

@zfkdsg
Copy link

zfkdsg commented Dec 26, 2024

When I ran the code, I encountered the following issue:

Traceback (most recent call last):
File "run.py", line 6, in
from src.SNI_SLAM import SNI_SLAM
File "run.py", line 23, in main
sni_slam = SNI_SLAM(cfg, args)
File "/home/dlut/zfk/SNI-SLAM/src/SNI_SLAM.py", line 110, in init
self.model_manager = ModelManager(cfg)
File "/home/dlut/zfk/SNI-SLAM/src/networks/model_manager.py", line 26, in init
self.cnn = self.get_dinov2().cuda()
File "/home/dlut/zfk/SNI-SLAM/src/networks/model_manager.py", line 42, in get_dinov2
model = DINO2SEG(img_h=self.img_h, img_w=self.img_w, num_cls=self.n_classes, edge=self.crop_edge, dim=self.dim)
File "/home/dlut/zfk/SNI-SLAM/src/networks/dinov2_seg.py", line 60, in init
self.backbone = make_dinov2_model(arch_name="vit_base")
File "/home/dlut/zfk/SNI-SLAM/src/networks/dinov2_seg.py", line 36, in make_dinov2_model
from dinov2.models import vision_transformer as vits

ModuleNotFoundError: No module named 'dinov2'

I'm not sure where I made a mistake.

@zfkdsg
Copy link
Author

zfkdsg commented Dec 26, 2024

I found out that I didn't unzip the folder and the problem has been solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant