Fix deprecation warning for unet config.

This commit is contained in:
Ean Garvey
2023-06-20 10:40:36 -05:00
committed by GitHub
parent 855435ee24
commit 458e52d230

View File

@@ -426,7 +426,7 @@ class SharkifyStableDiffusionModel:
)
if use_lora != "":
update_lora_weight(self.unet, use_lora, "unet")
self.in_channels = self.unet.in_channels
self.in_channels = self.unet.config.in_channels
self.train(False)
if(args.attention_slicing is not None and args.attention_slicing != "none"):
if(args.attention_slicing.isdigit()):