mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixed dict error
This commit is contained in:
parent
c6d00387a7
commit
0d2e194213
@ -23,10 +23,10 @@ def _conv_forward_asymmetric(self, input, weight, bias):
|
|||||||
|
|
||||||
|
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def set_unet_seamless(model: UNet2DModel, seamless: bool, seamless_axes):
|
def set_unet_seamless(model: UNet2DModel, seamless_axes):
|
||||||
try:
|
try:
|
||||||
to_restore = dict()
|
to_restore = []
|
||||||
if seamless:
|
|
||||||
for m in model.modules():
|
for m in model.modules():
|
||||||
if isinstance(m, (nn.Conv2d, nn.ConvTranspose2d)):
|
if isinstance(m, (nn.Conv2d, nn.ConvTranspose2d)):
|
||||||
m.asymmetric_padding_mode = {}
|
m.asymmetric_padding_mode = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user