apply lint, remove unused
This commit is contained in:
parent
2f4ab20f61
commit
3f9f94fcb5
|
@ -216,7 +216,6 @@ def convert_diffusion_diffusers(
|
|||
# SINGLE VAE
|
||||
vae_only = pipeline.vae
|
||||
vae_latent_channels = vae_only.config.latent_channels
|
||||
vae_out_channels = vae_only.config.out_channels
|
||||
# forward only through the decoder part
|
||||
vae_only.forward = vae_only.decode
|
||||
onnx_export(
|
||||
|
@ -266,7 +265,6 @@ def convert_diffusion_diffusers(
|
|||
# VAE DECODER
|
||||
vae_decoder = pipeline.vae
|
||||
vae_latent_channels = vae_decoder.config.latent_channels
|
||||
vae_out_channels = vae_decoder.config.out_channels
|
||||
# forward only through the decoder part
|
||||
vae_decoder.forward = vae_encoder.decode
|
||||
onnx_export(
|
||||
|
|
|
@ -3,7 +3,6 @@ from os import path
|
|||
from typing import Any, Optional, Tuple
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
from diffusers import (
|
||||
DDIMScheduler,
|
||||
DDPMScheduler,
|
||||
|
|
Loading…
Reference in New Issue