mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2025-12-13 05:48:56 +00:00
avoid build failure on linux
This commit is contained in:
parent
27a2cfe1d9
commit
2410ce3dee
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
#include "stable-diffusion.h"
|
#include "stable-diffusion.h"
|
||||||
|
|
||||||
|
#ifndef INCLUDE_STB_IMAGE_WRITE_H
|
||||||
#include "stb_image_write.h"
|
#include "stb_image_write.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint32_t offset;
|
uint32_t offset;
|
||||||
|
|||||||
@ -10,7 +10,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
// #include "preprocessing.hpp"
|
// #include "preprocessing.hpp"
|
||||||
#include "avi_writer.h"
|
|
||||||
#include "stable-diffusion.h"
|
#include "stable-diffusion.h"
|
||||||
|
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
@ -25,6 +24,8 @@
|
|||||||
#define STB_IMAGE_RESIZE_STATIC
|
#define STB_IMAGE_RESIZE_STATIC
|
||||||
#include "stb_image_resize.h"
|
#include "stb_image_resize.h"
|
||||||
|
|
||||||
|
#include "avi_writer.h"
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|||||||
@ -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"
|
"clip_skip: %d\n"
|
||||||
"width: %d\n"
|
"width: %d\n"
|
||||||
"height: %d\n"
|
"height: %d\n"
|
||||||
"sample_params: %.2f\n"
|
"sample_params: %s\n"
|
||||||
"strength: %.2f\n"
|
"strength: %.2f\n"
|
||||||
"seed: %" PRId64
|
"seed: %" PRId64
|
||||||
"\n"
|
"\n"
|
||||||
|
|||||||
2
wan.hpp
2
wan.hpp
@ -2028,7 +2028,7 @@ namespace WAN {
|
|||||||
wan_params.out_dim = 16;
|
wan_params.out_dim = 16;
|
||||||
wan_params.text_len = 512;
|
wan_params.text_len = 512;
|
||||||
} else {
|
} 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());
|
LOG_INFO("%s", desc.c_str());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user