model_cache: fix model default image dimensions

This commit is contained in:
Kevin Turner 2022-11-09 19:21:58 -08:00
parent 4c3858e079
commit ae9b482acf
2 changed files with 2 additions and 3 deletions

View File

@ -5,7 +5,6 @@ import PIL.Image
import torch
from .base import Generator
from .diffusers_pipeline import StableDiffusionGeneratorPipeline
class Txt2Img(Generator):

View File

@ -313,8 +313,8 @@ class ModelCache(object):
)
pipeline.to(self.device)
width = pipeline.vae.sample_size
height = pipeline.vae.sample_size
width = pipeline.vae.block_out_channels[-1]
height = pipeline.vae.block_out_channels[-1]
return pipeline, width, height, model_hash