File size: 501 Bytes
360d274
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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,
        )