avoid build failure on linux

This commit is contained in:
leejet 2025-08-29 22:20:16 +08:00
parent 27a2cfe1d9
commit 2410ce3dee
4 changed files with 6 additions and 3 deletions

View File

@ -8,7 +8,9 @@
#include "stable-diffusion.h"
#ifndef INCLUDE_STB_IMAGE_WRITE_H
#include "stb_image_write.h"
#endif
typedef struct {
uint32_t offset;

View File

@ -10,7 +10,6 @@
#include <vector>
// #include "preprocessing.hpp"
#include "avi_writer.h"
#include "stable-diffusion.h"
#define STB_IMAGE_IMPLEMENTATION
@ -25,6 +24,8 @@
#define STB_IMAGE_RESIZE_STATIC
#include "stb_image_resize.h"
#include "avi_writer.h"
#if defined(_WIN32)
#define NOMINMAX
#include <windows.h>

View File

@ -1679,7 +1679,7 @@ char* sd_img_gen_params_to_str(const sd_img_gen_params_t* sd_img_gen_params) {
"clip_skip: %d\n"
"width: %d\n"
"height: %d\n"
"sample_params: %.2f\n"
"sample_params: %s\n"
"strength: %.2f\n"
"seed: %" PRId64
"\n"

View File

@ -2028,7 +2028,7 @@ namespace WAN {
wan_params.out_dim = 16;
wan_params.text_len = 512;
} else {
GGML_ABORT("invalid num_layers(%d) of wan", wan_params.num_layers);
GGML_ABORT("invalid num_layers(%ld) of wan", wan_params.num_layers);
}
LOG_INFO("%s", desc.c_str());