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

Question about libraries #5

Open
janlesniak-prog opened this issue Jun 21, 2024 · 1 comment
Open

Question about libraries #5

janlesniak-prog opened this issue Jun 21, 2024 · 1 comment

Comments

@janlesniak-prog
Copy link

Hello,

For the semantic segmentation prediction in the Jupyter notebook, library dependencies seem to mismatch:

Requires mmseg >= 1.0, mmcv >= 2.0:
from mmseg.apis import init_model, inference_model, show_result_pyplot
from models.backbones import DinoVisionBackbone

Requires mmseg 0.27.0, mmcv == 1.5.0 (e.g. for mmcv.runner)
from dinov2.eval.segmentation.models.decode_heads.linear_head import BNHead

I was not able to arrive at one installation which allows to satisfy all imports. How could one resolve this dependency to make the code runnable? Thank you very much for this great example repository!

@zshn25
Copy link
Owner

zshn25 commented Jul 11, 2024

Hi,

thank you for your interest. This repo uses mmcv >= 1.0. I had not faced any issues while using dinov2.eval.segmentation.models.decode_heads.linear_head's BNHead with mmcv>=1.0.

Please try with the proposed requirements and let me know if you get any error

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

2 participants