mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 19:36:33 +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
@@ -22,6 +22,11 @@ struct SkipLayerDiffusionExtra {
|
||||
struct FluxDiffusionExtra {
|
||||
const sd::Tensor<float>* guidance = nullptr;
|
||||
const std::vector<int>* skip_layers = nullptr;
|
||||
// PuLID-Flux: precomputed (N=1, num_tokens=32, kv_dim=2048) identity embedding
|
||||
// produced by runtime-scripts/pulid_extract_id.py. nullptr when PuLID is
|
||||
// disabled. id_weight is per-job (typical 0.7-1.2; default 1.0).
|
||||
const sd::Tensor<float>* pulid_id = nullptr;
|
||||
float pulid_id_weight = 1.0f;
|
||||
};
|
||||
|
||||
struct AnimaDiffusionExtra {
|
||||
|
||||
Reference in new issue
Block a user