mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
model_cache: fix model default image dimensions
This commit is contained in:
parent
4c3858e079
commit
ae9b482acf
@ -5,7 +5,6 @@ import PIL.Image
|
||||
import torch
|
||||
|
||||
from .base import Generator
|
||||
from .diffusers_pipeline import StableDiffusionGeneratorPipeline
|
||||
|
||||
|
||||
class Txt2Img(Generator):
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user