I followed your instructions to build the environment. But I got the following error when running tutorial_train.py:
Traceback (most recent call last):
File "tutorial_train.py", line 1, in <module>
from share import *
File "/workspace/ControlNet/share.py", line 2, in <module>
from cldm.hack import disable_verbosity, enable_sliced_attention
File "/workspace/ControlNet/cldm/hack.py", line 5, in <module>
import ldm.modules.attention
File "/workspace/ControlNet/ldm/modules/attention.py", line 4, in <module>
from torch._C import TorchDispatchMode
ImportError: cannot import name 'TorchDispatchMode' from 'torch._C' (/opt/conda/envs/control/lib/python3.8/site-packages/torch/_C.cpython-38-x86_64-linux-gnu.so)
I followed your instructions to build the environment. But I got the following error when running tutorial_train.py:
And the details of my environment is as follows:
Can you give me some advice?