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

项目复现错误及解决方法分享 #5

Open
XksA-me opened this issue Nov 5, 2024 · 0 comments
Open

项目复现错误及解决方法分享 #5

XksA-me opened this issue Nov 5, 2024 · 0 comments

Comments

@XksA-me
Copy link

XksA-me commented Nov 5, 2024

1、Cannot initialize model with low cpu memory usage because accelerate was not found in the environment. Defaulting to low_cpu_mem_usage=False. It is strongly recommended to install accelerate for faster and less memory-intense model loading.

解决方法:pip install accelerate

2、python inference_video.py 错误

Traceback (most recent call last):
  File "/mnt/example/HelloMeme/inference_video.py", line 117, in <module>
    inference_video(engines, ref_img_path, drive_video_path, save_path, trans_ratio=0.0)
  File "/root/miniconda3/envs/myconda/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/example/HelloMeme/inference_video.py", line 80, in inference_video
    imageio.mimsave(save_path, res_frames, fps=15)
  File "/root/miniconda3/envs/myconda/lib/python3.12/site-packages/imageio/v2.py", line 494, in mimwrite
    with imopen(uri, "wI", **imopen_args) as file:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/miniconda3/envs/myconda/lib/python3.12/site-packages/imageio/core/imopen.py", line 281, in imopen
    raise err_type(err_msg)
ValueError: Could not find a backend to open `data/results/trump_jue.mp4`` with iomode `wI`.
Based on the extension, the following plugins might add capable backends:
  FFMPEG:  pip install imageio[ffmpeg]
  pyav:  pip install imageio[pyav]

解决方法:pip install imageio[ffmpeg]

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