Gourieff / sd-webui-reactor

Fast and Simple Face Swap Extension for StableDiffusion WebUI (A1111 SD WebUI, SD WebUI Forge, SD.Next, Cagliostro)
GNU Affero General Public License v3.0
2.45k stars 262 forks source link

Stable Diffusion WebUI Forge - Latest version 2 Aug 2024 #496

Open drdancm opened 1 month ago

drdancm commented 1 month ago

First, confirm

What happened?

Reactor does not work. Saved faces in Faces folder never show up. Nor can you get FSwap from a single Face Source. I posted about this in Forge, but so far no fix.

Steps to reproduce the problem

Confirm by trying it out.

Sysinfo

In SDiff WebUI Reactor works fine- same hardware, same Browser

Relevant console log

Not Relevant - it is Forge that has changed

Additional information

No response

dongxiat commented 1 month ago

First, confirm

  • [x] I have read the instruction carefully
  • [x] I have searched the existing issues
  • [x] I have updated the extension to the latest version

What happened?

Reactor does not work. Saved faces in Faces folder never show up. Nor can you get FSwap from a single Face Source. I posted about this in Forge, but so far no fix.

Steps to reproduce the problem

Confirm by trying it out.

Sysinfo

In SDiff WebUI Reactor works fine- same hardware, same Browser

Relevant console log

Not Relevant - it is Forge that has changed

Additional information

No response in Gradio 4.x the.update() method of components has been deprecated, now you can simply return the component itself

read this SOLUTION

Replace lines 27-49 of reactor_main_ui.py with:

            return {
               control_col_1: gr.Column(visible=False),
               control_col_2: gr.Column(visible=False),
               control_col_3: gr.Column(visible=True),
                # save_original: gr.Checkbox.update(value=False,visible=False),
                imgs_hash_clear: gr.Button(visible=True)
            }
        if evt.index == 0:
            return {
               control_col_1: gr.Column(visible=True),
               control_col_2: gr.Column(visible=False),
               control_col_3: gr.Column(visible=False),
                # save_original: gr.Checkbox.update(value=SAVE_ORIGINAL,visible=show_br),
                imgs_hash_clear: gr.Button(visible=False)
            }
        if evt.index == 1:
            return {
               control_col_1: gr.Column(visible=False),
               control_col_2: gr.Column(visible=True),
               control_col_3: gr.Column(visible=False),
                # save_original: gr.Checkbox.update(value=SAVE_ORIGINAL,visible=show_br),
                imgs_hash_clear: gr.Button(visible=False)
            }

and read this 494# see how to add these line to extensions/sd-webui-reactor/requirements.txt

CpuUnlimited commented 1 month ago

Fixes single images, Face models & folders remain broken

drdancm commented 1 month ago

Shamister has solved this problem by simply writing two lines into the requirments.txt Go read and try it here:

EP Error, can't load onnxruntime_providers_cuda.dll #494

It fixed all of my problems, so now Reactor works fine, Faces Models data loads up. Great Solution.

Thanks to Shamister.

drdancm commented 4 weeks ago

However, with each Forge update, things fail again.