Spaces:
Running
on
Zero
Running
on
Zero
RM exformers in unet
Browse files- model/archs/unet.py +1 -1
model/archs/unet.py
CHANGED
@@ -40,7 +40,7 @@ class UNetPP(nn.Module):
|
|
40 |
),
|
41 |
)
|
42 |
|
43 |
-
self.unet.enable_xformers_memory_efficient_attention()
|
44 |
if in_channels > 12:
|
45 |
self.learned_plane = torch.nn.parameter.Parameter(torch.zeros([1,in_channels-12,256,256*3]))
|
46 |
|
|
|
40 |
),
|
41 |
)
|
42 |
|
43 |
+
# self.unet.enable_xformers_memory_efficient_attention()
|
44 |
if in_channels > 12:
|
45 |
self.learned_plane = torch.nn.parameter.Parameter(torch.zeros([1,in_channels-12,256,256*3]))
|
46 |
|