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