Download 3_ControlNet/share.py from Qiyp/DiffICM: direct link, hf CLI and curl.
- Browser
- Download file 155 Bytes
-
https://huggingface.co/Qiyp/DiffICM/resolve/main/3_ControlNet/share.py
- Command line
-
hf download hf://Qiyp/DiffICM/3_ControlNet/share.py
-
curl -L -o share.py https://huggingface.co/Qiyp/DiffICM/resolve/main/3_ControlNet/share.py
155 Bytes
| import config | |
| from cldm.hack import disable_verbosity, enable_sliced_attention | |
| disable_verbosity() | |
| if config.save_memory: | |
| enable_sliced_attention() | |