controlnet_version.py 592 B

12345678910
  1. version_flag = 'v1.1.306'
  2. from scripts.logging import logger
  3. logger.info(f"ControlNet {version_flag}")
  4. # A smart trick to know if user has updated as well as if user has restarted terminal.
  5. # Note that in "controlnet.py" we do NOT use "importlib.reload" to reload this "controlnet_version.py"
  6. # This means if user did not completely restart terminal, the "version_flag" will be the previous version.
  7. # Then, if we get a screenshot from user, we will know that if that user has restarted the terminal.
  8. # And we will also know what version the user is using so that bug track becomes easier.