handle oversized images by downscaling

This commit is contained in:
Concedo
2024-08-26 13:58:18 +08:00
parent 6acbf1d7f4
commit c61fa9155d
2 changed files with 44 additions and 2 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
#define STB_IMAGE_WRITE_STATIC
#include "stb_image_write.h"
#define STB_IMAGE_RESIZE_IMPLEMENTATION
// #define STB_IMAGE_RESIZE_IMPLEMENTATION //already defined in llava
#include "stb_image_resize.h"
const char* rng_type_to_str[] = {