Add AutoencoderKL to the list of models that opt-out of partial loading.

This commit is contained in:
Ryan Dick 2024-12-19 15:25:23 -05:00
parent f9e899a6ba
commit 609ed06265

View File

@ -6,6 +6,7 @@ from typing import Dict, List, Optional
import psutil
import torch
from diffusers.models.autoencoders.autoencoder_kl import AutoencoderKL
from invokeai.backend.flux.ip_adapter.xlabs_ip_adapter_flux import XlabsIpAdapterFlux
from invokeai.backend.flux.modules.autoencoder import AutoEncoder
@ -156,6 +157,7 @@ class ModelCache:
AutoEncoder,
# XLabsIPAdapterFlux is a wrapper around two models that are called directly.
XlabsIpAdapterFlux,
AutoencoderKL,
)
# Wrap model.