update sd_hijack_opt to respect new env variables
This commit is contained in:
parent
ddfa9a9786
commit
69d0053583
@ -1,9 +1,14 @@
|
|||||||
import math
|
import math
|
||||||
import torch
|
import torch
|
||||||
from torch import einsum
|
from torch import einsum
|
||||||
import xformers.ops
|
try:
|
||||||
import functorch
|
import xformers.ops
|
||||||
xformers._is_functorch_available=True
|
import functorch
|
||||||
|
xformers._is_functorch_available = True
|
||||||
|
shared.xformers_available = True
|
||||||
|
except:
|
||||||
|
print('Cannot find xformers, defaulting to split attention. Try setting --xformers in your webui-user file if you wish to install it.')
|
||||||
|
continue
|
||||||
from ldm.util import default
|
from ldm.util import default
|
||||||
from einops import rearrange
|
from einops import rearrange
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user