Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Hide Triton warning on Windows

pythongosssss0787299610c0
diff --git a/main.py b/main.py
index c5f04aa96..f5aec4424 100644
--- a/main.py
+++ b/main.py
@@ -7,6 +7,10 @@ import heapq
import traceback
import asyncio
+if os.name == "nt":
+ import logging
+ logging.getLogger("xformers").addFilter(lambda record: 'A matching Triton is not available' not in record.getMessage())
+
try:
import aiohttp
from aiohttp import web