feat(cli): add metadata inspection mode (#1381)

This commit is contained in:
leejet authored and GitHub committed 2026-04-01 00:52:03 +08:00
1 parent 6dfe945958
commit 09b12d5f6d
7 files changed
+1269 -22

No files matched your search

+4 -2
View File
@@ -39,14 +39,16 @@ const char* modes_str[] = {
"vid_gen",
"convert",
"upscale",
"metadata",
};
#define SD_ALL_MODES_STR "img_gen, vid_gen, convert, upscale"
#define SD_ALL_MODES_STR "img_gen, vid_gen, convert, upscale, metadata"
enum SDMode {
IMG_GEN,
VID_GEN,
CONVERT,
UPSCALE,
METADATA,
MODE_COUNT
};
@@ -777,7 +779,7 @@ struct SDContextParams {
}
bool process_and_check(SDMode mode) {
if (mode != UPSCALE && model_path.length() == 0 && diffusion_model_path.length() == 0) {
if (mode != UPSCALE && mode != METADATA && model_path.length() == 0 && diffusion_model_path.length() == 0) {
LOG_ERROR("error: the following arguments are required: model_path/diffusion_model\n");
return false;
}