CP-Cluster
CP-Cluster copied to clipboard
Install Error in MMCV
I tried to install cp-cluster in mmcv. After adding and replacing your code in mmcv, I ran the script MMCV_WITH_OPS=1 pip install -e .
However, some errors occured. There are some details about errors below.
ERROR: Command errored out with exit status 1:
command: /data1/ljh/anaconda3/envs/open-mmlab/bin/python /data1/ljh/anaconda3/envs/open-mmlab/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpk836o1xj
cwd: /data1/ljh/anaconda3/envs/open-mmlab
Complete output (6 lines):
running egg_info
writing src/rapidfuzz.egg-info/PKG-INFO
writing dependency_links to src/rapidfuzz.egg-info/dependency_links.txt
writing requirements to src/rapidfuzz.egg-info/requires.txt
writing top-level names to src/rapidfuzz.egg-info/top_level.txt
error: package directory 'src/rapidfuzz' does not exist
WARNING: Discarding file:///data1/ljh/anaconda3/envs/open-mmlab. Command errored out with exit status 1: /data1/ljh/anaconda3/envs/open-mmlab/bin/python /data1/ljh/anaconda3/envs/open-mmlab/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpk836o1xj Check the logs for full command output.
ERROR: Command errored out with exit status 1: /data1/ljh/anaconda3/envs/open-mmlab/bin/python /data1/ljh/anaconda3/envs/open-mmlab/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpk836o1xj Check the logs for full command output.
How can I solve this problem?
Are you able to run this command to compile mmcv without cp-cluster modification?
I have installed CP-cluster for few days. However, I can't find any improvement in my Mask R-CNN for text detection. Detection results with soft-nms is the same as detection results with cp. I think there are some problems in it.
Are you using mmdetection? Not sure which model you're trying with cp-cluster, but you can try below actions:
-
Check whether it calls cp-cluster correctly by adding some debug message in the cpp implementation, verifying that it's right using the cp-cluster version of mmcv ========== //return softnms_impl(boxes, scores, dets, iou_threshold, sigma, min_score, // method, offset); // print something here return cp_cluster_impl(boxes, scores, dets, iou_threshold, min_score, offset, 0.8f, 0, 3); ==========
-
Try "1" or "2" for last param of "cp_cluster_impl", check whether there're any difference? return cp_cluster_impl(boxes, scores, dets, iou_threshold, min_score, offset, 0.8f, 0, 1);
BTW, if you're willing to share a runnable model with me, I can also help test it on my side
I tried to install cp-cluster in mmcv. After adding and replacing your code in mmcv, I ran the script
MMCV_WITH_OPS=1 pip install -e .
However, some errors occured. There are some details about errors below.ERROR: Command errored out with exit status 1: command: /data1/ljh/anaconda3/envs/open-mmlab/bin/python /data1/ljh/anaconda3/envs/open-mmlab/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpk836o1xj cwd: /data1/ljh/anaconda3/envs/open-mmlab Complete output (6 lines): running egg_info writing src/rapidfuzz.egg-info/PKG-INFO writing dependency_links to src/rapidfuzz.egg-info/dependency_links.txt writing requirements to src/rapidfuzz.egg-info/requires.txt writing top-level names to src/rapidfuzz.egg-info/top_level.txt error: package directory 'src/rapidfuzz' does not exist WARNING: Discarding file:///data1/ljh/anaconda3/envs/open-mmlab. Command errored out with exit status 1: /data1/ljh/anaconda3/envs/open-mmlab/bin/python /data1/ljh/anaconda3/envs/open-mmlab/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpk836o1xj Check the logs for full command output. ERROR: Command errored out with exit status 1: /data1/ljh/anaconda3/envs/open-mmlab/bin/python /data1/ljh/anaconda3/envs/open-mmlab/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpk836o1xj Check the logs for full command output.
How can I solve this problem?
Could you please tell me how to solve this problem?
Are you able to compile and install standard mmcv without cp?
I can install standard mmcv successfully without cp.