2023-03-03 06:02:00 +00:00
|
|
|
"""
|
2023-03-02 18:28:17 +00:00
|
|
|
initialization file for invokeai
|
2023-03-03 06:02:00 +00:00
|
|
|
"""
|
2024-02-29 23:04:59 +00:00
|
|
|
|
2024-07-03 16:20:35 +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-02-18 00:58:30 +00:00
|
|
|
|
2023-07-27 14:54:01 +00:00
|
|
|
|
2023-02-18 00:58:30 +00:00
|
|
|
def _ignore_xformers_triton_message_on_windows():
|
|
|
|
import logging
|
2023-03-03 06:02:00 +00:00
|
|
|
|
2023-02-18 00:58:30 +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()
|
|
|
|
)
|
|
|
|
|
2023-02-18 00:58:30 +00:00
|
|
|
|
|
|
|
# In order to be effective, this needs to happen before anything could possibly import xformers.
|
|
|
|
_ignore_xformers_triton_message_on_windows()
|