mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-13 18:39:48 +00:00
remove constraint for img dimension
This commit is contained in:
parent
9c0fbf9f73
commit
79c8e87922
1 changed files with 2 additions and 2 deletions
|
@ -372,8 +372,8 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
|
|||
|
||||
input_image_buffer = stbi_load_from_memory(image_buffer.data(), image_buffer.size(), &nx, &ny, &nc, 3);
|
||||
|
||||
if (nx <= 0 || nx % 64 != 0 || ny <= 0 || ny % 64 != 0 || nc!= 3) {
|
||||
printf("\nKCPP SD: bad input image dimensions!\n");
|
||||
if (nx < 64 || ny < 64 || nc!= 3) {
|
||||
printf("\nKCPP SD: bad input image dimensions %d x %d!\n",nx,ny);
|
||||
output.data = "";
|
||||
output.status = 0;
|
||||
return output;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue