-
Notifications
You must be signed in to change notification settings - Fork 312
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 instruction #150
Comments
BTW, most of links from README cannot work, it would be great to replace them. |
P2: AttributeError: 'ConfigDict' object has no attribute 'nms' A2: This is caused by the conflict between old config and latest version of mmdet/mmcv/mmedit. You can directly modify YOUR-PATH-TO-MMDET/mmdet/models/dense_heads/rpn_head.py, and add In which line i had to add this??? |
You can refer to error message where the cfg is used.
|
Sorry for taking so long to response, did u mean like this or not?
|
I usually set it before calling it, something like below.
|
I already add this
and it says Process PreprocessConsumer_0: During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): (iperc) E:\Deepfake Movement\iPERCore-main> How do i fix this? |
Any answer??? |
TypeError: 'module' object is not callable That means there is no answer for this kind of issues? |
Please be polite. I just provide my solution which is not official and elegant, but this indeed works for me. Will not reply anymore. Closed. |
It's an interesting project, but it seems to be a little difficult to run the demo code because of environment problem. Thus, I put my problems and final solution here for anyone who meet the same issues.
P1: The provided Colab cannot work.
A1: It has 2 problems. First, the download link to checkpoints and samples are invalid, you can find new download addresses from OneDrive. Second, Colab does not support os.symlink or ln -s now, this will throw an intermediate error.
P2: AttributeError: 'ConfigDict' object has no attribute 'nms'
A2: This is caused by the conflict between old config and latest version of mmdet/mmcv/mmedit. You can directly modify YOUR-PATH-TO-MMDET/mmdet/models/dense_heads/rpn_head.py, and add
cfg.nms = dict(type='nms', iou_threshold=0.7)
. Possibly, you will get another AttributeError of 'max_per_img', thus, you also need to addcfg.max_per_img = 100
subsequently.P3: RuntimeError: nms is not compiled with GPU support
P4: /mmcv/_ext.cpython-37m-x86_64-linux-gnu.so: undefined symbol
A3&A4: Those are all because of mm packages. This repo uses relative old version that may not fit CUDA11. I strongly suggest to install the newest version of them (mmcv == 1.5.3, mmdet == 2.25.0, mmedit == 0.15.0) following official instruction. Especially for mmcv-full, you need install the one that match your local torch&cuda version. If it still cannot detect CUDA, just install it from source instead of pip. After reinstall, you may need also do steps in A2.
P5: KeyError: '04_left_leg'
A5: In ./iPERCore/tools/human_digitalizer/deformers/link_utils.py, change '04_left_leg' to '02_left_leg'.
The text was updated successfully, but these errors were encountered: