VAE loader is loading proper VAE. Unclear if it is changing the image

This commit is contained in:
Lincoln Stein 2023-06-30 18:46:36 -04:00 committed by psychedelicious
parent fa8a5838d3
commit a8a2209560

View File

@ -254,9 +254,9 @@ class VaeLoaderInvocation(BaseInvocation):
} }
def invoke(self, context: InvocationContext) -> VaeLoaderOutput: def invoke(self, context: InvocationContext) -> VaeLoaderOutput:
base_model = self.vae.base_model base_model = self.vae_model.base_model
model_name = self.vae.model_name model_name = self.vae_model.model_name
model_type = ModelType.vae model_type = ModelType.Vae
if not context.services.model_manager.model_exists( if not context.services.model_manager.model_exists(
base_model=base_model, base_model=base_model,
@ -266,8 +266,10 @@ class VaeLoaderInvocation(BaseInvocation):
raise Exception(f"Unkown vae name: {model_name}!") raise Exception(f"Unkown vae name: {model_name}!")
return VaeLoaderOutput( return VaeLoaderOutput(
vae=VaeField( vae=VaeField(
model_name = model_name, vae = ModelInfo(
base_model = base_model, model_name = model_name,
model_type = model_type, base_model = base_model,
model_type = model_type,
)
) )
) )