-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] width or height can not be 608 #44
Comments
The height and width should be multiples of 64. I have updated the prompt for the command line parameters |
Nice work🙏 |
Shouldn't they be multiples of 8? 504x520 is a valid dimension in other SD pipelines. |
The sd diffusion process run in the latent space of 1/8 of the width and height. In addition, unet will downsample the middle layer to 1/8 during the operation, so in fact the middle layer size will be 1/64 of width and height, which is why sd.cpp requires width and height to be multiples of 64. If "sd" were to scale the latent space to a multiple of 8 before U-Net computation and then restore it to its original size afterward, it would indeed allow input widths and heights to be multiples of 8. However, I have not implemented it yet. |
Is there any plan to implement this feature? |
This already works for Flux and SD3 models if you bypass the part that sanitizes the cli arguments. For example, if you use the server example (#367) , you can set the width and height in the json payload, and the values aren't being checked. (this causes crashes with Unet-based models btw) json payload : |
GGML_Assert ggml.c 5733 a->ne[0] .....
The text was updated successfully, but these errors were encountered: