Panchovix / stable-diffusion-webui-reForge

GNU Affero General Public License v3.0
350 stars 17 forks source link

[Bug]: After installing Reactor extention I get this "'HiResFixOption.BOTH' is not a valid HiResFixOption" #96

Closed kris2per closed 3 months ago

kris2per commented 3 months ago

Checklist

What happened?

After installing the Reactor extention I get these errors & it seems to disable controlnet as well:

Steps to reproduce the problem

1.) Installing Reactor 2.) I get these error.

What should have happened?

I've tried this before in A1111 it suppose to work fine.

What browsers do you use to access the UI ?

Mozilla Firefox

Sysinfo

sysinfo-2024-08-01-11-48.json

Console logs

File "D:\ReForge\stable-diffusion-webui-reForge\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\ReForge\stable-diffusion-webui-reForge\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "D:\ReForge\stable-diffusion-webui-reForge\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "D:\ReForge\stable-diffusion-webui-reForge\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "D:\ReForge\stable-diffusion-webui-reForge\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "D:\ReForge\stable-diffusion-webui-reForge\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "D:\ReForge\stable-diffusion-webui-reForge\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "D:\ReForge\stable-diffusion-webui-reForge\extensions-builtin\sd_forge_controlnet\lib_controlnet\controlnet_ui\controlnet_ui_group.py", line 616, in create_unit
    return ControlNetUnit.from_dict({
  File "D:\ReForge\stable-diffusion-webui-reForge\extensions-builtin\sd_forge_controlnet\lib_controlnet\external_code.py", line 308, in from_dict
    unit.hr_option = HiResFixOption(unit.hr_option)
  File "C:\Users\Kris\AppData\Local\Programs\Python\Python310\lib\enum.py", line 385, in __call__
    return cls.__new__(cls, value)
  File "C:\Users\Kris\AppData\Local\Programs\Python\Python310\lib\enum.py", line 710, in __new__
    raise ve_exc
ValueError: 'HiResFixOption.BOTH' is not a valid HiResFixOption

Additional information

No response

Panchovix commented 3 months ago

Hi there, thanks for the report. Pushed a commit that may fix this, can you try?

https://github.com/Panchovix/stable-diffusion-webui-reForge/commit/977e4e3e5fb046a51a0cbeeeeaa32293e61cd1fd

Holyniwa commented 3 months ago

this happens often to me as well, if you select an option in the control net area, it will go away. it seems to unselect all options in control net, which is what causes it.

JamesTuo commented 3 months ago

Hi there, thanks for the report. Pushed a commit that may fix this, can you try?

977e4e3

it works fine with me, fix this error problem, now my controlnet -Canny -Depth -OpenPose -SoftEdge works well, thanks a lot

Panchovix commented 3 months ago

Great! Closing the issue for now, but if someone still gets the issue I can re open.