zshn25 / DINOv2_mmseg

Training and testing of DINOv2 for segmentation downstream
Apache License 2.0
19 stars 1 forks source link

Question about libraries #5

Open janlesniak-prog opened 5 months ago

janlesniak-prog commented 5 months ago

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 commented 4 months ago

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

Brown-Ebouky commented 3 hours ago

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.