0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Live_Portrait_Monitor を ローカルで使う動画生成AI

Posted at

動画生成AIを使ってみた

動画をアップできないので

上記に書いてあるようにやればいいんだけど、注意点。

ファイルを指定する場合は

python inference_org.py -s assets/examples/source/hage.jpg -d assets/examples/driving/d3.mp4 --no_flag_pasteback

と、写真パスと動画パスを同時に指定すること。

# to use monitor
python inference_monitor.py -s assets/examples/source/MY_photo.jpg 

# or disable pasting back
python inference_monitor.py -s assets/examples/source/s9.jpg -d assets/examples/driving/d0.mp4 --no_flag_pasteback

# to use original code for inference 
python inference_org.py -s assets/examples/source/s9.jpg -d assets/examples/driving/d0.mp4 --no_flag_pasteback

# more options to see
python inference_org.py -h

とある中で、

python inference_monitor.py -s assets/examples/source/MY_photo.jpg 

と画像だけ指定する場合はエラーになる。

File "C:\Users\xxx\liveportrait\Live_Portrait_Monitor\src\live_portrait_pipeline_monitor.py", line 620, in process_frame
    frame_resized = cv2.resize(frame, (256, 256))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.10.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4152: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

こんな感じ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?