mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
feat: add PuLID-Flux identity-injection support (#1595)
This commit is contained in:
1 parent
6e66a1a4a4
commit
93527fda74
11 files changed
+878
-13
No files matched your search
@@ -133,6 +133,11 @@ struct SDContextParams {
|
||||
std::string control_net_path;
|
||||
std::string embedding_dir;
|
||||
std::string photo_maker_path;
|
||||
// PuLID-Flux identity-preservation context path: the safetensors blob
|
||||
// carrying the PerceiverAttentionCA cross-attention weights. Loaded
|
||||
// once with the model. Per-generation pulid_id_embedding_path lives in
|
||||
// SDGenerationParams below.
|
||||
std::string pulid_weights_path;
|
||||
sd_type_t wtype = SD_TYPE_COUNT;
|
||||
std::string tensor_type_rules;
|
||||
std::string lora_model_dir = ".";
|
||||
@@ -234,6 +239,12 @@ struct SDGenerationParams {
|
||||
std::string pm_id_embed_path;
|
||||
float pm_style_strength = 20.f;
|
||||
|
||||
// PuLID-Flux: per-generation identity embedding (binary file produced by
|
||||
// runtime-scripts/pulid_extract_id.py). Format documented in
|
||||
// include/stable-diffusion.h sd_pulid_params_t.
|
||||
std::string pulid_id_embedding_path;
|
||||
float pulid_id_weight = 1.0f;
|
||||
|
||||
int upscale_repeats = 1;
|
||||
int upscale_tile_size = 128;
|
||||
|
||||
|
||||
Reference in new issue
Block a user