InvokeAI/invokeai/version/__init__.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
529 B
Python
Raw Normal View History

2023-03-03 06:02:00 +00:00
"""
initialization file for invokeai
2023-03-03 06:02:00 +00:00
"""
2024-02-29 23:04:59 +00:00
from invokeai.version.invokeai_version import __version__ # noqa: F401
2023-03-03 06:02:00 +00:00
__app_id__ = "invoke-ai/InvokeAI"
__app_name__ = "InvokeAI"
2023-07-27 14:54:01 +00:00
def _ignore_xformers_triton_message_on_windows():
import logging
2023-03-03 06:02:00 +00:00
logging.getLogger("xformers").addFilter(
2023-03-03 06:02:00 +00:00
lambda record: "A matching Triton is not available" not in record.getMessage()
)
# In order to be effective, this needs to happen before anything could possibly import xformers.
_ignore_xformers_triton_message_on_windows()