stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

dimensions

Open LucasSilvaFerreira opened this issue 2 years ago • 2 comments

Am I missing it? Is it possible to use commands to increase the Width and Height?

LucasSilvaFerreira avatar Aug 12 '22 22:08 LucasSilvaFerreira

Use --W for width and --H for height in pixels For example txt2img.py --W 640 --H 480 --prompt ... To see the list of all arguments with descriptions use --help Other places to find arguments with descriptions is either on the README.md or directly in the txt2img.py file itself.

ChangelingSpy avatar Aug 13 '22 02:08 ChangelingSpy

I am hitting an error whenever I want to generate vertical aspect ratios like --H 640 --W 480:

RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 16 but got size 15 for tensor number 1 in the list.

It seems that both W and H need to be a multiply of some number?

asrlhhh avatar Aug 15 '22 19:08 asrlhhh

I am hitting an error whenever I want to generate vertical aspect ratios like --H 640 --W 480:

RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 16 but got size 15 for tensor number 1 in the list.

It seems that both W and H need to be a multiply of some number?

Yes I am having this error as well. Have you had success with any changes to height? I only had success with 512,512

Iuryck avatar Aug 23 '22 02:08 Iuryck

Just had success with 640 by 640

Iuryck avatar Aug 23 '22 02:08 Iuryck