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

No module named 'mtcnn_pytorch.src.align_trans' #196

Open
Ao-Lee opened this issue Feb 27, 2023 · 0 comments
Open

No module named 'mtcnn_pytorch.src.align_trans' #196

Ao-Lee opened this issue Feb 27, 2023 · 0 comments

Comments

@Ao-Lee
Copy link

Ao-Lee commented Feb 27, 2023

I think the mtcnn version used is not consistant with the mtcnn version provided. When I type 'import mtcnn', I got the following message:

ModuleNotFoundError                       Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_12452\2345676177.py in <module>
----> 1 import mtcnn

F:\Projects\FaceVectorExperiments\InsightFaceThirdparty\mtcnn.py in <module>
      6 from mtcnn_pytorch.src.box_utils import nms, calibrate_box, get_image_boxes, convert_to_square
      7 from mtcnn_pytorch.src.first_stage import run_first_stage
----> 8 from mtcnn_pytorch.src.align_trans import get_reference_facial_points, warp_and_crop_face
      9 device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
     10 # device = 'cpu'

ModuleNotFoundError: No module named 'mtcnn_pytorch.src.align_trans'

I didn't find any of the two functions get_reference_facial_points warp_and_crop_face in the provided mtcnn module

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

1 participant