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

Running Demo gets ModuleNotFoundError: No module named 'six' #16

Open
M1ndBlast opened this issue Oct 22, 2023 · 5 comments
Open

Running Demo gets ModuleNotFoundError: No module named 'six' #16

M1ndBlast opened this issue Oct 22, 2023 · 5 comments

Comments

@M1ndBlast
Copy link

I've tried to run demo with a video for vsr executing the next line:

(TT) PS D:\auto_avsr> python demo.py data.modality='audio' pretrained_model_path='.\asr_trlrs3vox2_base.pth' file_path='.\avsr_english_1.mp4'

but i got the next error

Traceback (most recent call last):
  File "demo.py", line 7, in <module>
    from lightning import ModelModule
  File "D:\auto_avsr\lightning.py", line 7, in <module>
    from espnet.nets.batch_beam_search import BatchBeamSearch
  File "D:\auto_avsr\espnet\nets\batch_beam_search.py", line 8, in <module>
    from espnet.nets.beam_search import BeamSearch, Hypothesis
  File "D:\auto_avsr\espnet\nets\beam_search.py", line 9, in <module>
    from espnet.nets.e2e_asr_common import end_detect
  File "D:\auto_avsr\espnet\nets\e2e_asr_common.py", line 16, in <module>
    import six
ModuleNotFoundError: No module named 'six'

I already execute step by step to setup enviroment, and already install c++ requirements but still get the same error

Conda enviroment
Python 3.8.18
Windows 11 w/ powershell

@mpc001
Copy link
Owner

mpc001 commented Oct 23, 2023

Hi @M1ndBlast, can you please install that package pip install six?

@M1ndBlast
Copy link
Author

I installed six

(TT) PS C:\Users\peduz> pip install six
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
DEPRECATION: pytorch-lightning 1.5.10 has a non-standard dependency specifier torch>=1.7.*. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of pytorch-lightning or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: six
Successfully installed six-1.16.0

And I get new missing module "ibug"

(TT) PS D:\auto_avsr> python demo.py data.modality='video' pretrained_model_path='.\asr_trlrs3vox2_base.pth' file_path='.\avsr_english_1.mp4'
Error executing job with overrides: ['data.modality=video', 'pretrained_model_path=.\\asr_trlrs3vox2_base.pth', 'file_path=.\\avsr_english_1.mp4']
Traceback (most recent call last):
  File "demo.py", line 77, in main
    pipeline = InferencePipeline(cfg)
  File "demo.py", line 24, in __init__
    from preparation.detectors.retinaface.detector import LandmarksDetector
  File "D:\auto_avsr\preparation\detectors\retinaface\detector.py", line 9, in <module>
    from ibug.face_alignment import FANPredictor
ModuleNotFoundError: No module named 'ibug'

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

and now I can't install ibug

(TT) PS D:\auto_avsr> pip install ibug
ERROR: Ignored the following versions that require a different python version: 0.0.3 Requires-Python >=3.9; 0.0.4 Requires-Python >=3.9; 0.0.5 Requires-Python >=3.9; 0.0.7 Requires-Python >=3.9; 0.0.9 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement ibug (from versions: none)
ERROR: No matching distribution found for ibug

@mpc001
Copy link
Owner

mpc001 commented Oct 24, 2023

Hi @M1ndBlast, can you please install the face tracker and face alignment libraries by following PR #17?

@M1ndBlast
Copy link
Author

Done. Sorry for take too time (evaluation period stuff)

I installed it with Option 1. Tried command again and i get next error:
image

CUDA is required?

@liu33333
Copy link

需要cuda的,前提是你的pytorch版本正确

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