venv fixes

This commit is contained in:
Vladimir Mandic
2023-04-13 07:24:26 -04:00
parent f46fa09910
commit 4f2b7268ca
8 changed files with 57 additions and 40 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import sys
from modules import shared
from modules.shared import opts
# this will break any attempt to import xformers which will prevent stability diffusion repo from trying to use it
if shared.opts.cross_attention_optimization != "xFormers":
if opts.cross_attention_optimization != "xFormers":
sys.modules["xformers"] = None