Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A quick & dirty fix.
mmcv-full 1.7.2, mmlvis 10.5.3 and mmpycocotools 12.0.3 have to be built from source, and pycocotools should be uninstalled manually.
When building mmpycocotools, there is an error in linking, caused by two maskApi.o. The quick and dirty fix is running:
cc -pthread -B /home/akiko/miniconda3/envs/bonai/compiler_compat -shared -Wl,-rpath,/home/akiko/miniconda3/envs/bonai/lib -Wl,-rpath-link,/home/akiko/miniconda3/envs/bonai/lib -L/home/akiko/miniconda3/envs/bonai/lib -Wl,-rpath,/home/akiko/miniconda3/envs/bonai/lib -Wl,-rpath-link,/home/akiko/miniconda3/envs/bonai/lib -L/home/akiko/miniconda3/envs/bonai/lib build/temp.linux-x86_64-cpython-310/../common/maskApi.o build/temp.linux-x86_64-cpython-310/pycocotools/_mask.o -o build/lib.linux-x86_64-cpython-310/pycocotools/_mask.cpython-310-x86_64-linux-gnu.so
then pip install -e .
When building mmcv-full, use the following commands:
MMCV_WITH_OPS=1 FORCE_CUDA=1 pip install -e . -v
You need an environment with CUDA=11.7 and pytorch=1.13.1. A working nvcc=11.7.x is required. If your system have both CUDA 12 and 11, do following:
export PATH="/usr/local/cuda-11/bin:$PATH" export LD_LIBRARY_PATH="/usr/local/cuda-11/lib64:$LD_LIBRARY_PATH"
Conda will not solve everything here.