Download microsoftexcel-controlnet/scripts/controlnet_version.py from toto10/extensions: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/toto10/extensions/resolve/refs%2Fpr%2F4/microsoftexcel-controlnet/scripts/controlnet_version.py
- Command line
-
hf download hf://toto10/extensions@refs/pr/4/microsoftexcel-controlnet/scripts/controlnet_version.py
-
curl -L -o controlnet_version.py https://huggingface.co/toto10/extensions/resolve/refs%2Fpr%2F4/microsoftexcel-controlnet/scripts/controlnet_version.py
549 Bytes
| version_flag = 'v1.1.210' | |
| print(f'ControlNet {version_flag}') | |
| # A smart trick to know if user has updated as well as if user has restarted terminal. | |
| # Note that in "controlnet.py" we do NOT use "importlib.reload" to reload this "controlnet_version.py" | |
| # This means if user did not completely restart terminal, the "version_flag" will be the previous version. | |
| # Then, if we get a screenshot from user, we will know that if that user has restarted the terminal. | |
| # And we will also know what version the user is using so that bug track becomes easier. | |