sd-webui-roop
sd-webui-roop copied to clipboard
Traceback (most recent call last):
Error calling: D:\AI\extensions\sd-webui-roop\scripts\faceswap.py/ui Traceback (most recent call last): File "D:\AI\modules\scripts.py", line 283, in wrap_call res = func(*args, **kwargs) File "D:\AI\extensions\sd-webui-roop\scripts\faceswap.py", line 64, in ui models = get_models() File "D:\AI\extensions\sd-webui-roop\scripts\faceswap.py", line 21, in get_models models = glob.glob(models_path) UnboundLocalError: local variable 'models_path' referenced before assignment 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
same here
我也是
rollback version ccca35e 回退版本ccca35e
Just edit faceswap.py and swap lines 21 and 22
From this:
To This:
Yes, that's exactly what I did too. It was logical, define the path first :)
Just edit faceswap.py and swap lines 21 and 22 From this:
To This:
谢谢大佬,已经正常工作了。 Thank you boss, it's working fine now
i had to do this too.... looks like it was explicitly changed around in today's patch to where it broke.
Just edit faceswap.py and swap lines 21 and 22 From this:
To This:
thnks bro
This issue has been fixed, my fault.
def get_models(): models_path = os.path.join(scripts.basedir(), "models/roop/*") models = glob.glob(models_path) models = [x for x in models if x.endswith(".onnx") or x.endswith(".pth")] return models
IS MY LINE 23 MISSING???
I AM GETTING THIS ERROR
Error running postprocess_batch: C:\Users\VIPER PC\Documents\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions\sd-webui-roop\scripts\faceswap.py