CP-Cluster icon indicating copy to clipboard operation
CP-Cluster copied to clipboard

Install Error in MMCV

Open pd162 opened this issue 2 years ago • 6 comments

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?

pd162 avatar Apr 02 '22 09:04 pd162

Are you able to run this command to compile mmcv without cp-cluster modification?

shenyi0220 avatar Apr 04 '22 14:04 shenyi0220

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.

pd162 avatar Apr 14 '22 05:04 pd162

Are you using mmdetection? Not sure which model you're trying with cp-cluster, but you can try below actions:

  1. 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); ==========

  2. 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

shenyi0220 avatar Apr 14 '22 07:04 shenyi0220

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?

mastergao57 avatar Dec 05 '22 11:12 mastergao57

Are you able to compile and install standard mmcv without cp?

shenyi0220 avatar Dec 05 '22 13:12 shenyi0220

I can install standard mmcv successfully without cp.

pd162 avatar Dec 07 '22 06:12 pd162