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
|
|
|
"""
|
2023-03-02 18:28:17 +00:00
|
|
|
from .invokeai_version import __version__
|
2023-03-03 06:02:00 +00:00
|
|
|
|
|
|
|
__app_id__ = "invoke-ai/InvokeAI"
|
|
|
|
__app_name__ = "InvokeAI"
|
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()
|