1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Hide Triton warning on Windows

Triton doesnt work on Windows so hide the error
This commit is contained in:
pythongosssss
2023-02-16 18:19:26 +00:00
committed by GitHub
parent 56498d505a
commit 0787299610

View File

@@ -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