Open bluelovers opened 2 months ago
Same... I updated from the main branch to dev2 just now and now my ControlNet is completely broken. No feature of it works.
Adding InputMode to the import at the top of the file fixes it for me
stable-diffusion-webui-forge/extensions-builtin/sd_forge_controlnet/scripts/controlnet.py Line 30: from lib_controlnet.enums import HiResFixOption, InputMode
my fix way is
install/run a1111 , and copy its venv to forge, then will work
Adding InputMode to the import at the top of the file fixes it for me
stable-diffusion-webui-forge/extensions-builtin/sd_forge_controlnet/scripts/controlnet.py Line 30: from lib_controlnet.enums import HiResFixOption, InputMode
I don't find your instructions very clear but I did what I thought you meant. I've attached my controlnet.py file contents here: https://pastebin.com/uW2WHapj. Could you kindly check that I made the changes you suggested? because I still get the same error. My ControlNet on dev2 does not work at alll.
This is how my file looks
stable-diffusion-webui-forge/extensions-builtin/sd_forge_controlnet/scripts/controlnet.py https://pastebin.com/5L4CLtqp
I modified line 30 to add InputMode to the import
from lib_controlnet.enums import HiResFixOption -> from lib_controlnet.enums import HiResFixOption, InputMode
This is how my file looks
stable-diffusion-webui-forge/extensions-builtin/sd_forge_controlnet/scripts/controlnet.py https://pastebin.com/5L4CLtqp
I modified line 30 to add InputMode to the import
from lib_controlnet.enums import HiResFixOption -> from lib_controlnet.enums import HiResFixOption, InputMode
Both our line 30s are the same so I don't know why my Control Net is not working but yours is
This is how my file looks stable-diffusion-webui-forge/extensions-builtin/sd_forge_controlnet/scripts/controlnet.py https://pastebin.com/5L4CLtqp I modified line 30 to add InputMode to the import from lib_controlnet.enums import HiResFixOption -> from lib_controlnet.enums import HiResFixOption, InputMode
Both our line 30s are the same so I don't know why my Control Net is not working but yours is
In your file, line 2 doesn't match.
from typing import Dict, Optional, Tuple, List, Union, HiResFixOption, InputMode
should be
from typing import Dict, Optional, Tuple, List, Union
This is how my file looks stable-diffusion-webui-forge/extensions-builtin/sd_forge_controlnet/scripts/controlnet.py https://pastebin.com/5L4CLtqp I modified line 30 to add InputMode to the import from lib_controlnet.enums import HiResFixOption -> from lib_controlnet.enums import HiResFixOption, InputMode
Both our line 30s are the same so I don't know why my Control Net is not working but yours is
In your file, line 2 doesn't match.
from typing import Dict, Optional, Tuple, List, Union, HiResFixOption, InputMode
should be
from typing import Dict, Optional, Tuple, List, Union
Yes I'm aware of that. I edited that based on what you said "Adding InputMode to the import at the top of the file fixes it for me" - that's why it wasn't clear because line 30 wouldn't be the top of the file. Anyway, I have tried again and now my ControlNet works BUT the multi-input tabs are not working and resulting in the same error. Can you confirm your Multi-input is working?
Checklist
What happened?
Steps to reproduce the problem
What should have happened?
.
What browsers do you use to access the UI ?
No response
Sysinfo
sysinfo-2024-05-04-21-45.json
Console logs
Additional information
No response