fastsdtest / backend /openvino /custom_ov_model_vae_decoder.py
bilegentile's picture
Upload folder using huggingface_hub
564df58 verified
raw
history blame contribute delete
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,
)