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

不使用ui运行代码,使用face_enhancer模式时无法运行。 #770

Open
mygithubiscool opened this issue Nov 8, 2024 · 1 comment

Comments

@mygithubiscool
Copy link

mygithubiscool commented Nov 8, 2024

您好,碰到一个bug。我不使用ui界面,直接用运行脚本就会报错:

------------------------ run.py文件 ------------------------


#!/usr/bin/env python3
import os
import sys
from modules import core
os.environ["CUDA_VISIBLE_DEVICES"] = "1"

#模拟命令行参数,添加--execution-provider cuda
sys.argv += ["--execution-provider", "cuda"]
sys.argv += ["-s", "input/images/picture1.png", "-t", "input/videos/real_001.mp4", "-o", "output/output03.mp4"]
#choices=['face_swapper', 'face_enhancer']
sys.argv += ["--frame-processor", "face_swapper"]

if name == 'main':
print(" ===============> 开始run ")
core.run()

------------------------ issues ------------------------

如果--frame-processor选择“sys.argv += ["--frame-processor", "face_swapper"]”是可以正常执行。
如果--frame-processor变成模式sys.argv += ["--frame-processor", "face_enhancer"]。就会报错!

但是如果使用ui界面来处理,打开face_enhancer模式就能正常运行。想问是什么原因呢?

@NeuroDonu
Copy link
Contributor

AUTOMATIC1111/stable-diffusion-webui#13985 (if you use windows, use my fork and solve in this issue)
and my small fix in #773 (of you use only linux)

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

2 participants