question about semantic-segmentation environment #343
-
|
I am following semantic-segmentation README, when I running After searching on the Internet, I know it's probably about version conficts. But I hope there is a detailed version requirements(such as cuda version, torch version, etc.) to help me solve this. And here is my env info: Should I downgrade my cuda version? |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments
-
|
It looks like a cuda library version incompatibility issue. |
Beta Was this translation helpful? Give feedback.
-
|
1. mmcv verstion should be: mmcv>=2.0.0rc4, <2.1.0, or it will shows error like this: 2. mmcv is heavily relying on the versions of the PyTorch and Cuda installed. The installation of mmcv should ref to this: https://mmcv.readthedocs.io/zh-cn/latest/get_started/installation.html#install-with-pip For example, cuda 11.8 and torch 2.1.x cannot install suitable mmcv as shown below, cannot match the requirement mmcv<2.1.0 In the doc, the installation step is conclusion |
Beta Was this translation helpful? Give feedback.
-
Good job! (P.S. mmcv is installed only for visualization of semantic segmentation results. If visualization is not required, you could annotate out all the mmcv content.) |
Beta Was this translation helpful? Give feedback.
-
|
My env info(successfully run However I met another strange problem: if I run in project root dir If I add this to and when I run So THERE EXISTS CUDA, but when I run |
Beta Was this translation helpful? Give feedback.
-
Maybe it's caused by the "os.environ['CUDA_VISIBLE_DEVICES'] = '1'". |
Beta Was this translation helpful? Give feedback.
-
|
Thanks so much! delete "os.environ['CUDA_VISIBLE_DEVICES'] = '1'" and it works. btw, I don't know why there is "os.environ['CUDA_VISIBLE_DEVICES'] = '1'", is it necessary for some reason? |
Beta Was this translation helpful? Give feedback.
-
|
Another problem, when I run Other env info: sedna==0.4.1 |
Beta Was this translation helpful? Give feedback.
-
No reasons, I just forgot to delete it. |
Beta Was this translation helpful? Give feedback.
-
change the mode to "no-inference". |
Beta Was this translation helpful? Give feedback.
-
|
Because there is and then rerun This time the training succeed, however the visualization is wrong: |
Beta Was this translation helpful? Give feedback.
-
The visualization part may have some bugs. You could use the "selected_and_all" mode. |
Beta Was this translation helpful? Give feedback.
-
|
Yes it works! However after the rank result, the program just stuck, I wonder why. |
Beta Was this translation helpful? Give feedback.
-
This is normal, so just ctrl c to exit. |
Beta Was this translation helpful? Give feedback.
-
|
I have successfully go through the semantic-segementation lifelong learning example. Share my environment here: OS and CUDA: pip list: |
Beta Was this translation helpful? Give feedback.





1. mmcv verstion should be: mmcv>=2.0.0rc4, <2.1.0, or it will shows error like this: