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

[SOLVED] Error running postproccess_image #8

Closed
gd1147 opened this issue Jul 5, 2023 · 8 comments
Closed

[SOLVED] Error running postproccess_image #8

gd1147 opened this issue Jul 5, 2023 · 8 comments

Comments

@gd1147
Copy link

gd1147 commented Jul 5, 2023

Receiving the following error. Have tried multiple options of upscalers and reversing the order of processing.

*** Error running postprocess_image: D:\StableDiffusion\stable-diffusion-webui\extensions\sd-webui-roop-nsfw\scripts\faceswap.py
Traceback (most recent call last):
File "D:\StableDiffusion\stable-diffusion-webui\modules\scripts.py", line 514, in postprocess_image
script.postprocess_image(p, pp, *script_args)
File "D:\StableDiffusion\stable-diffusion-webui\extensions\sd-webui-roop-nsfw\scripts\faceswap.py", line 212, in postprocess_image
upscale_options=self.upscale_options,
File "D:\StableDiffusion\stable-diffusion-webui\extensions\sd-webui-roop-nsfw\scripts\faceswap.py", line 133, in upscale_options
return UpscaleOptions(
TypeError: UpscaleOptions.init() got an unexpected keyword argument 'do_restore_first'

@Gourieff
Copy link
Owner

Gourieff commented Jul 6, 2023

Please, read here how to solve it: #3

@Gourieff Gourieff added the bug Something isn't working label Jul 6, 2023
@gd1147
Copy link
Author

gd1147 commented Jul 6, 2023

Thank you that fixed it. Perhaps adding to the install instructions that it cannot co-exist with the original version of Roop would be useful.

@Gourieff
Copy link
Owner

Gourieff commented Jul 6, 2023

It can co-exist in different directories, this issue takes place, as I suppose, when original Roop extension is manually renamed to this one - so that not all commits become merged during 'git pull' and some files remain outdated

@gd1147
Copy link
Author

gd1147 commented Jul 6, 2023

OK, thank you for clarifying. I am not sure what happened in my case as I didn't do any copying or co mingling of the two. Deleting all versions and only installing this one did the trick for me. I can test adding the other version back later and see if it breaks anything.

@postmrtm
Copy link

postmrtm commented Jul 7, 2023

I'm getting the following error no matter how i try to resolve and using all the possible answers i found on google :(
please help :(

'FaceSwapScript' object has no attribute 'enable'

@Gourieff
Copy link
Owner

Gourieff commented Jul 7, 2023

@postmrtm you can try this solution: s0md3v#138

@postmrtm
Copy link

postmrtm commented Jul 7, 2023

amazing! that was the issue! i cant believe ive wasted all day because of another extension clash :(
thank you @Gourieff !

@Gourieff
Copy link
Owner

Gourieff commented Jul 7, 2023

OK, thank you for clarifying. I am not sure what happened in my case as I didn't do any copying or co mingling of the two. Deleting all versions and only installing this one did the trick for me. I can test adding the other version back later and see if it breaks anything.

You were right! I test it one more time - and they really can co-exist only if one of extensions is disabled!
I suppose that there is the arguments conflict because of the original Roop initializes first and has less arguments.
I added this moment to the Troubleshooting section of the Readme.
Thanks!

@Gourieff Gourieff added ✔ solved and removed bug Something isn't working labels Aug 5, 2023
@Gourieff Gourieff changed the title Error running postproccess_image [SOLVED] Error running postproccess_image Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants