InvokeAI/invokeai/version/__init__.py
Martin Kristiansen 218b6d0546 Apply black
2023-07-27 10:54:01 -04:00

20 lines
498 B
Python

"""
initialization file for invokeai
"""
from .invokeai_version import __version__
__app_id__ = "invoke-ai/InvokeAI"
__app_name__ = "InvokeAI"
def _ignore_xformers_triton_message_on_windows():
import logging
logging.getLogger("xformers").addFilter(
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()