merged with master and resolved conflicts; adapted to GGMLBlock API

This commit is contained in:
bssrdf committed 2024-02-25 14:35:37 -05:00
commit 53beb92d2f
20 files changed
+4605 -4288

No files matched your search

+14
View File
@@ -28,6 +28,20 @@ std::string sd_basename(const std::string& path);
sd_image_t *preprocess_id_image(sd_image_t * img);
typedef struct {
uint32_t width;
uint32_t height;
uint32_t channel;
float* data;
} sd_image_f32_t;
void normalize_sd_image_f32_t(sd_image_f32_t image, float means[3], float stds[3]);
sd_image_f32_t sd_image_t_to_sd_image_f32_t(sd_image_t image);
sd_image_f32_t resize_sd_image_f32_t(sd_image_f32_t image, int target_width, int target_height);
sd_image_f32_t clip_preprocess(sd_image_f32_t image, int size);
std::string path_join(const std::string& p1, const std::string& p2);