mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 19:36:33 +00:00
fix: add lora info to image metadata (#1086)
This commit is contained in:
1 parent
614f8736df
commit
43a70e819b
2 files changed
+3
-1
No files matched your search
@@ -863,6 +863,7 @@ static bool is_absolute_path(const std::string& p) {
|
||||
|
||||
struct SDGenerationParams {
|
||||
std::string prompt;
|
||||
std::string prompt_with_lora; // for metadata record only
|
||||
std::string negative_prompt;
|
||||
int clip_skip = -1; // <= 0 represents unspecified
|
||||
int width = 512;
|
||||
@@ -1476,6 +1477,7 @@ struct SDGenerationParams {
|
||||
}
|
||||
|
||||
bool process_and_check(SDMode mode, const std::string& lora_model_dir) {
|
||||
prompt_with_lora = prompt;
|
||||
if (width <= 0) {
|
||||
fprintf(stderr, "error: the width must be greater than 0\n");
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user