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 · 3 comments
Open

Question about libraries #5

janlesniak-prog opened this issue Jun 21, 2024 · 3 comments

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 mmseg >= 1.0. I had not faced any issues while using dinov2.eval.segmentation.models.decode_heads.linear_head's BNHead with mmseg>=1.0.

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

@Brown-Ebouky
Copy link

Hi @janlesniak-prog ,

please did you solve this issue with the requirements? I am facing the same problem.
@zshn25 , which version of mmsegmentation are you using in your environment.

Thank you very much for your time.

@zshn25
Copy link
Owner

zshn25 commented Nov 20, 2024

Please try with the following

conda create -n mmseg1.x python=3.9
conda activate mmseg1.x

# pip install -r ../dinov2/requirements.txt

pip install -U openmim
mim install mmengine
mim install "mmcv>=2.0.0"

git clone -b main https://github.com/open-mmlab/mmsegmentation.git
cd mmsegmentation
pip install -v -e .

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

3 participants