Skip to content

Faceswap and Facelift do not work #264

@Rowr21

Description

@Rowr21

Due diligence

  • I checked for similar issues and couldn't find any.
  • My WebUI and Unprompted are both up-to-date.
  • I disabled my other extensions but the problem persists.

Describe the bug

Hi! Love the extension and the work put into this. Unfortunately, when running a faceswap or face lift I get the following error:

` 2025-03-24 10:03:40,951 (ERROR) [Unprompted] Could not parse contents.
Traceback (most recent call last):
File "C:\stable\webui\extensions\unprompted\lib_unprompted\shortcodes.py", line 135, in render
return str(self.handler(self.token.keyword, self.pargs, self.kwargs, context))
File "C:\stable\webui\extensions\unprompted\lib_unprompted\shared.py", line 84, in handler
return (self.shortcode_objects[f"{keyword}"].run_atomic(pargs, kwargs, context))
File "C:\stable\webui\extensions\unprompted/shortcodes\stable_diffusion\faceswap.py", line 21, in run_atomic
self.Unprompted.shortcode_install_requirements(f"general", ["tensorflow", "onnx"])
File "C:\stable\webui\extensions\unprompted\lib_unprompted\shared.py", line 773, in shortcode_install_requirements
if self.Config.skip_requirements:
AttributeError: 'types.SimpleNamespace' object has no attribute 'skip_requirements'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\stable\webui\extensions\unprompted\lib_unprompted\shared.py", line 252, in process_string
string = self.shortcode_parser.parse(self.sanitize_pre(string, self.Config.syntax.sanitize_before), context)
File "C:\stable\webui\extensions\unprompted\lib_unprompted\shortcodes.py", line 286, in parse
return stack.pop().render(context).replace(self.esc_start, "")
File "C:\stable\webui\extensions\unprompted\lib_unprompted\shortcodes.py", line 60, in render
return ''.join(child.render(context) for child in self.children)
File "C:\stable\webui\extensions\unprompted\lib_unprompted\shortcodes.py", line 60, in
return ''.join(child.render(context) for child in self.children)
File "C:\stable\webui\extensions\unprompted\lib_unprompted\shortcodes.py", line 139, in render
raise ShortcodeRenderingError(msg) from ex
lib_unprompted.shortcodes.ShortcodeRenderingError: An exception was raised while rendering the 'faceswap' shortcode in line 1. `

The templates I tried to run look like this:

[call "common\wizard\facelift\facelift" faces="C:\Users\rowan\AppData\Local\Temp\gradio\47daf133e500dae13725847fa890182c3c252be1\EXAMPLE.jpg" preset="make_embedding" unload="0" template_name='Facelift v0.2.0' id='facelift']

I then run [call makeface] in automatic111111.

I get no output to unprompted/user/faces.

Prompt

[call makeface]

Log output

Traceback (most recent call last):
  File "C:\stable\webui\extensions\unprompted\lib_unprompted\shortcodes.py", line 135, in render
    return str(self.handler(self.token.keyword, self.pargs, self.kwargs, context))
  File "C:\stable\webui\extensions\unprompted\lib_unprompted\shared.py", line 84, in handler
    return (self.shortcode_objects[f"{keyword}"].run_atomic(pargs, kwargs, context))
  File "C:\stable\webui\extensions\unprompted/shortcodes\stable_diffusion\faceswap.py", line 21, in run_atomic
    self.Unprompted.shortcode_install_requirements(f"general", ["tensorflow", "onnx"])
  File "C:\stable\webui\extensions\unprompted\lib_unprompted\shared.py", line 773, in shortcode_install_requirements
    if self.Config.skip_requirements:
AttributeError: 'types.SimpleNamespace' object has no attribute 'skip_requirements'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\stable\webui\extensions\unprompted\lib_unprompted\shared.py", line 252, in process_string
    string = self.shortcode_parser.parse(self.sanitize_pre(string, self.Config.syntax.sanitize_before), context)
  File "C:\stable\webui\extensions\unprompted\lib_unprompted\shortcodes.py", line 286, in parse
    return stack.pop().render(context).replace(self.esc_start, "")
  File "C:\stable\webui\extensions\unprompted\lib_unprompted\shortcodes.py", line 60, in render
    return ''.join(child.render(context) for child in self.children)
  File "C:\stable\webui\extensions\unprompted\lib_unprompted\shortcodes.py", line 60, in <genexpr>
    return ''.join(child.render(context) for child in self.children)
  File "C:\stable\webui\extensions\unprompted\lib_unprompted\shortcodes.py", line 139, in render
    raise ShortcodeRenderingError(msg) from ex
lib_unprompted.shortcodes.ShortcodeRenderingError: An exception was raised while rendering the 'faceswap' shortcode in line 1.

Unprompted version

1294248

WebUI version

v1.10.1

Other comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions