-
Notifications
You must be signed in to change notification settings - Fork 109
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
Not working with the newer version of Stable Diffusion Forge #197
Comments
I tried again, actually, everything works, except for auto inpainting after face swap. Can do it manually in img2img tab, but it doesn't work in extension :) |
I just transferred to Forge coming from A1111, where FaceSwapLab is working perfectly. However, I cannot get it installed properly in Forge. When I click on the arrow for FaceSwapLab in Txt2img or Img2img, the extension will not open up. I get the following error messages:
Any clue what the problem is and how to fix it? |
You can fix it by looking for all the type="file" occurences in the extension scripts, and replacing them with type="filepath". There will be other errors, but most of the extension will work, except for inpainting. Can't help much for the rest, my Python skills are limited Considering the author hasn't worked on the extension for a year now, I guess it's your best course of action. |
Can you specify the files you altered? Or even better, create a fork with your changes? |
@kriimakt: Thank you very much for your help! After reading your 1st post, I was not sure if we even had the same problem and which files exactly to change. @GunnyNinja: You need to change the py-files in the sub-folders of "webui\extensions\sd-webui-faceswaplab\scripts". It's definitely "webui\extensions\sd-webui-faceswaplab\scripts\faceswaplab_ui\faceswaplab_unit_ui.py" and 1 or 2 others. Just open them in an editor, search for "type="file"", and replace with "type="filepath"". It will take you just a few minutes... There will be new error messages appearing, just like @kriimakt pointed out, but it works for me as well now. At least in Txt2img, I have not tested every function yet.... |
You can also try ReActor, another similar extension for A1111, it works fine with Forge. I prefer Faceswaplabs, but at least ReActor works 100%. |
I tried Kriimakt methods and it gives me a whole other pack of errors. Edit : I didn't have an upscaler selected... No issue. |
This fork works for me https://github.com/Ethereum-John/sd-webui-forge-faceswaplab |
It works the same as one of the other forks I found, but just like with A1111, it does not output img2img to the folder. |
It work with Flux as well, but Flux for people are not good. Thanks! |
Mostly due to Gradio deprecated options (mostly Placeholder and file type) the extension doesn't work with Stable Diffusion Forge.
I managed, with my limited knowledge, to make it work with SDXL models, by changing "file" to "filepath". There still are many errors, but it works, most of the time.
When I try with Flux AI models, I only get a black square where the face is though. Any clue about how to fix this ? :)
The text was updated successfully, but these errors were encountered: