video-retalking icon indicating copy to clipboard operation
video-retalking copied to clipboard

face3d module missing

Open zachysaur opened this issue 1 year ago • 6 comments

Traceback (most recent call last): File "inference.py", line 16, in from third_part.face3d.util.preprocess import align_img File "C:\Users\xXxXx\Downloads\video-retalking-main\third_part\face3d\util_init_.py", line 2, in from face3d.util import * ModuleNotFoundError: No module named 'face3d'

zachysaur avatar Sep 21 '23 07:09 zachysaur

The ModuleNotFoundError error indicates that your Python script cannot find the face3d module. To resolve this issue, you can take the following steps:

  1. Install Required Dependencies: Make sure you have installed all the necessary dependencies for your project. In your case, face3d is presumably an external library that needs to be installed. You can install the face3d library using pip if it's available:

    pip install face3d
    

    Ensure that you execute this within the same virtual environment (or where you have other dependencies installed) for your project.

  2. Check the Module Path: Ensure that the path to the face3d module is correctly specified in your script. Your error suggests that Python cannot find the face3d module in the third_part.face3d folder. Double-check that the module path is correct and that the __init__.py files are in the right places.

  3. Verify Python Version: Confirm that you are using the correct version of Python that is compatible with the face3d library.

  4. Check the Current Directory: Make sure your script is being run from the correct directory. Sometimes issues can arise due to the wrong working directory.

  5. Check for Other Conflicts and Module Names: Ensure there are no module name conflicts with other libraries or files in your project.

If the error persists after following these steps, clarify from where you are attempting to import the face3d module and verify its presence in the specified location.

Feel free to provide additional details or error messages if you need further assistance.

denzabob avatar Sep 21 '23 10:09 denzabob

which version of python? 3.8? which mentioned in main page

zachysaur avatar Sep 21 '23 13:09 zachysaur

Python 3.10

denzabob avatar Sep 21 '23 15:09 denzabob

2023-09-23_06h46_48 i used python 3.10 just like you said

zachysaur avatar Sep 23 '23 01:09 zachysaur

This problem is not caused by forgetting pip install face3d or python versions. See my comment on the duplicate issue: https://github.com/OpenTalker/video-retalking/issues/78#issuecomment-1851200324

jake-nz avatar Dec 12 '23 02:12 jake-nz

2023-09-23_06h46_48 i used python 3.10 just like you said

install this ---> conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.8 -c pytorch -c nvidia

supermurkote avatar Jan 03 '24 17:01 supermurkote