I can use stable diffusion without any problems. However, whenever I try to install ControlNet, I encounter the error below and can't use the program. I've reinstalled the program from scratch, but it didn't fix the issue. I tried "pip install --upgrade pip" but it didn't work either. Most of the solutions I found online didn't help.
File "C:\Users\AFK\Downloads\sd.webui\system\python\lib\site-packages\fastapi\params.py", line 4, in
from pydantic.fields import FieldInfo, Undefined
ImportError: cannot import name 'Undefined' from 'pydantic.fields' (C:\Users\AFK\Downloads\sd.webui\system\python\lib\site-packages\pydantic\fields.py)
Press any key to continue . . .
I can use stable diffusion without any problems. However, whenever I try to install ControlNet, I encounter the error below and can't use the program. I've reinstalled the program from scratch, but it didn't fix the issue. I tried "pip install --upgrade pip" but it didn't work either. Most of the solutions I found online didn't help.
File "C:\Users\AFK\Downloads\sd.webui\system\python\lib\site-packages\fastapi\params.py", line 4, in
from pydantic.fields import FieldInfo, Undefined
ImportError: cannot import name 'Undefined' from 'pydantic.fields' (C:\Users\AFK\Downloads\sd.webui\system\python\lib\site-packages\pydantic\fields.py)
Press any key to continue . . .