Merge pull request #5794 from Akegarasu/master

fix: xformers
This commit is contained in:
AUTOMATIC1111 2022-12-24 07:49:15 +03:00 committed by GitHub
commit 5ee75e3c1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

5
modules/import_hook.py Normal file
View File

@ -0,0 +1,5 @@
import sys
if "xformers" not in "".join(sys.argv):
sys.modules["xformers"] = None

View File

@ -8,6 +8,7 @@ from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastapi.middleware.gzip import GZipMiddleware
from modules import import_hook
from modules.call_queue import wrap_queued_call, queue_lock, wrap_gradio_gpu_call
from modules.paths import script_path