testlcm / backend /openvino /custom_ov_model_vae_decoder.py
michaelj's picture
Upload folder using huggingface_hub
360d274
raw
history blame
501 Bytes
from backend.device import is_openvino_device
if is_openvino_device():
from optimum.intel.openvino.modeling_diffusion import OVModelVaeDecoder
class CustomOVModelVaeDecoder(OVModelVaeDecoder):
def __init__(
self,
model,
parent_model,
ov_config=None,
model_dir=None,
):
super(OVModelVaeDecoder, self).__init__(
model,
parent_model,
ov_config,
"vae_decoder",
model_dir,
)