[root@www inference]# bash ./faceshifter_infer.sh
demo0: faceshifter vanilla, image infer
Traceback (most recent call last):
File "/root/ReliableSwap/inference/faceshifter_infer.py", line 27, in
from PIPNet.lib.tools import get_lmk_model, demo_image
File "/root/ReliableSwap/inference/PIPNet/lib/tools.py", line 6, in
from inference.PIPNet.FaceBoxesV2.faceboxes_detector import *
File "/root/ReliableSwap/inference/../inference/PIPNet/FaceBoxesV2/faceboxes_detector.py", line 8, in
from inference.PIPNet.FaceBoxesV2.utils.nms_wrapper import nms
File "/root/ReliableSwap/inference/../inference/PIPNet/FaceBoxesV2/utils/nms_wrapper.py", line 8, in
from .nms.cpu_nms import cpu_nms, cpu_soft_nms
ModuleNotFoundError: No module named 'inference.PIPNet.FaceBoxesV2.utils.nms.cpu_nms'
That file is a pyx file. pyx file needs to compile before you import the file. There is a make.sh in upper directory and you need to run the script first.
[root@www inference]# bash ./faceshifter_infer.sh demo0: faceshifter vanilla, image infer Traceback (most recent call last): File "/root/ReliableSwap/inference/faceshifter_infer.py", line 27, in
from PIPNet.lib.tools import get_lmk_model, demo_image
File "/root/ReliableSwap/inference/PIPNet/lib/tools.py", line 6, in
from inference.PIPNet.FaceBoxesV2.faceboxes_detector import *
File "/root/ReliableSwap/inference/../inference/PIPNet/FaceBoxesV2/faceboxes_detector.py", line 8, in
from inference.PIPNet.FaceBoxesV2.utils.nms_wrapper import nms
File "/root/ReliableSwap/inference/../inference/PIPNet/FaceBoxesV2/utils/nms_wrapper.py", line 8, in
from .nms.cpu_nms import cpu_nms, cpu_soft_nms
ModuleNotFoundError: No module named 'inference.PIPNet.FaceBoxesV2.utils.nms.cpu_nms'