feat: change image dimensions requirement for DiT models (#742)

This commit is contained in:
stduhpf
2025-07-28 15:58:17 +02:00
committed by GitHub
parent 8c3c788f31
commit 59080d3ce1
2 changed files with 13 additions and 4 deletions

View File

@@ -596,13 +596,13 @@ void parse_args(int argc, const char** argv, SDParams& params) {
exit(1);
}
if (params.width <= 0 || params.width % 64 != 0) {
fprintf(stderr, "error: the width must be a multiple of 64\n");
if (params.width <= 0) {
fprintf(stderr, "error: the width must be greater than 0\n");
exit(1);
}
if (params.height <= 0 || params.height % 64 != 0) {
fprintf(stderr, "error: the height must be a multiple of 64\n");
if (params.height <= 0) {
fprintf(stderr, "error: the height must be greater than 0\n");
exit(1);
}