Code Monkey home page Code Monkey logo

wav2lip_uhq's People

Contributors

numz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wav2lip_uhq's Issues

Wav2lip - Need help on No face issue

I come across the no face issue in the end of a project, which cost a lot of time already.
So I am wondering if there any good solution to avoid this kind of issue.

  • is there any efficient way to know if the video include frames who are not a face.
  • is there any code could skip those no face frames since it is indeed an habitude for some people cover the mouth with their hands for ex.

Thanks.

Error: operands could not be broadcast together with shapes

Trying to run this but getting an error.

(venv) F:\wav2lip_uhq>F:\wav2lip_uhq\venv\Scripts\python.exe wav2lip_uhq.py -f 1.mp4 -i vera1.mp4
[INFO] Loading the predictor...
[INFO] Loading File...
Processing frame: 0 of 2241
Traceback (most recent call last):
File "F:\wav2lip_uhq\wav2lip_uhq.py", line 183, in
main()
File "F:\wav2lip_uhq\wav2lip_uhq.py", line 154, in main
result = result * (1 - mask_blur) + dst
ValueError: operands could not be broadcast together with shapes (1320,1080,3) (330,270,3)

The file 1.mp4 was created by wave2lip from vera1.mp4 and an audio file.

After the installation, the web UI cannot be accessed.

微信图片_20231217164558 venv "D:\software\webui\venv\Scripts\Python.exe" Python 3.10.6 | packaged by conda-forge | (main, Oct 24 2022, 16:02:16) [MSC v.1916 64 bit (AMD64)] Version: v1.6.1 Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7 Traceback (most recent call last): File "D:\software\webui\launch.py", line 50, in main() File "D:\software\webui\launch.py", line 41, in main prepare_environment() File "D:\software\webui\modules\launch_utils.py", line 356, in prepare_environment raise RuntimeError( RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check 请按任意键继续. . .

Failed to save as video

Got this error after generating all my images, seems it couldnt save as a video file

my inference was
python wav2lip_uhq.py -f C:/Users/leolo/Documents/bad2.mp4 -i C:/Users/leolo/Documents/test.mp4

Error:

[INFO] Create Video output!
Traceback (most recent call last):
  File "C:\Users\leolo\wav2lip_uhq\wav2lip_uhq.py", line 183, in <module>
    main()
  File "C:\Users\leolo\wav2lip_uhq\wav2lip_uhq.py", line 170, in main
    create_video_from_images(args, frame_number-1)
  File "C:\Users\leolo\wav2lip_uhq\wav2lip_uhq.py", line 30, in create_video_from_images
    subprocess.run(
  File "C:\Users\leolo\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 501, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\leolo\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\leolo\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1378, in _execute_child
    args = list2cmdline(args)
  File "C:\Users\leolo\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 561, in list2cmdline
    for arg in map(os.fsdecode, seq):
  File "C:\Users\leolo\AppData\Local\Programs\Python\Python310\lib\os.py", line 822, in fsdecode
    filename = fspath(filename)  # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not int

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.