Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Error in MMCV #2

Open
pd162 opened this issue Apr 2, 2022 · 6 comments
Open

Install Error in MMCV #2

pd162 opened this issue Apr 2, 2022 · 6 comments

Comments

@pd162
Copy link

pd162 commented Apr 2, 2022

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?

@shenyi0220
Copy link
Owner

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

@pd162
Copy link
Author

pd162 commented Apr 14, 2022

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.

@shenyi0220
Copy link
Owner

shenyi0220 commented Apr 14, 2022

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

@mastergao57
Copy link

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?

@shenyi0220
Copy link
Owner

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

@pd162
Copy link
Author

pd162 commented Dec 7, 2022

I can install standard mmcv successfully without cp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants