diff --git a/invokeai/app/invocations/generate.py b/invokeai/app/invocations/generate.py index ba25cd2e6a..dd44ee0ed9 100644 --- a/invokeai/app/invocations/generate.py +++ b/invokeai/app/invocations/generate.py @@ -46,8 +46,8 @@ class TextToImageInvocation(BaseInvocation, SDImageInvocation): prompt: Optional[str] = Field(description="The prompt to generate an image from") seed: int = Field(default=-1,ge=-1, le=np.iinfo(np.uint32).max, description="The seed to use (-1 for a random seed)", ) steps: int = Field(default=10, gt=0, description="The number of steps to use to generate the image") - width: int = Field(default=512, multiple_of=64, gt=0, description="The width of the resulting image", ) - height: int = Field(default=512, multiple_of=64, gt=0, description="The height of the resulting image", ) + width: int = Field(default=512, multiple_of=8, gt=0, description="The width of the resulting image", ) + height: int = Field(default=512, multiple_of=8, gt=0, description="The height of the resulting image", ) cfg_scale: float = Field(default=7.5, gt=0, description="The Classifier-Free Guidance, higher values may result in a result closer to the prompt", ) scheduler: SAMPLER_NAME_VALUES = Field(default="k_lms", description="The scheduler to use" ) seamless: bool = Field(default=False, description="Whether or not to generate an image that can tile without seams", ) diff --git a/invokeai/app/invocations/latent.py b/invokeai/app/invocations/latent.py index 9dadc79597..c6ea8a686a 100644 --- a/invokeai/app/invocations/latent.py +++ b/invokeai/app/invocations/latent.py @@ -113,8 +113,8 @@ class NoiseInvocation(BaseInvocation): # Inputs seed: int = Field(ge=0, le=np.iinfo(np.uint32).max, description="The seed to use", default_factory=random_seed) - width: int = Field(default=512, multiple_of=64, gt=0, description="The width of the resulting noise", ) - height: int = Field(default=512, multiple_of=64, gt=0, description="The height of the resulting noise", ) + width: int = Field(default=512, multiple_of=8, gt=0, description="The width of the resulting noise", ) + height: int = Field(default=512, multiple_of=8, gt=0, description="The height of the resulting noise", ) # Schema customisation