├── .gitignore ├── LICENSE ├── README.md ├── app.py ├── app_flux.py ├── app_v1_1.py ├── docs ├── pulid_for_flux.md ├── pulid_v1.1.md └── v1.1_preview.md ├── eva_clip ├── __init__.py ├── bpe_simple_vocab_16e6.txt.gz ├── constants.py ├── eva_vit_model.py ├── factory.py ├── hf_configs.py ├── hf_model.py ├── loss.py ├── model.py ├── model_configs │ ├── EVA01-CLIP-B-16.json │ ├── EVA01-CLIP-g-14-plus.json │ ├── EVA01-CLIP-g-14.json │ ├── EVA02-CLIP-B-16.json │ ├── EVA02-CLIP-L-14-336.json │ ├── EVA02-CLIP-L-14.json │ ├── EVA02-CLIP-bigE-14-plus.json │ └── EVA02-CLIP-bigE-14.json ├── modified_resnet.py ├── openai.py ├── pretrained.py ├── rope.py ├── timm_model.py ├── tokenizer.py ├── transform.py ├── transformer.py └── utils.py ├── example_inputs ├── hinton.jpeg ├── lecun.jpg ├── lifeifei.jpg ├── liuyifei.png ├── pengwei.jpg ├── rihanna.webp └── zcy.webp ├── flux ├── __init__.py ├── math.py ├── model.py ├── modules │ ├── __init__.py │ ├── autoencoder.py │ ├── conditioner.py │ └── layers.py ├── sampling.py └── util.py ├── models └── .gitkeep ├── pulid ├── attention_processor.py ├── encoders.py ├── encoders_transformer.py ├── pipeline.py ├── pipeline_flux.py ├── pipeline_v1_1.py └── utils.py ├── pyproject.toml ├── requirements.txt └── requirements_fp8.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/README.md -------------------------------------------------------------------------------- /app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/app.py -------------------------------------------------------------------------------- /app_flux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/app_flux.py -------------------------------------------------------------------------------- /app_v1_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/app_v1_1.py -------------------------------------------------------------------------------- /docs/pulid_for_flux.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/docs/pulid_for_flux.md -------------------------------------------------------------------------------- /docs/pulid_v1.1.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/docs/pulid_v1.1.md -------------------------------------------------------------------------------- /docs/v1.1_preview.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/docs/v1.1_preview.md -------------------------------------------------------------------------------- /eva_clip/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/__init__.py -------------------------------------------------------------------------------- /eva_clip/bpe_simple_vocab_16e6.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/bpe_simple_vocab_16e6.txt.gz -------------------------------------------------------------------------------- /eva_clip/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/constants.py -------------------------------------------------------------------------------- /eva_clip/eva_vit_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/eva_vit_model.py -------------------------------------------------------------------------------- /eva_clip/factory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/factory.py -------------------------------------------------------------------------------- /eva_clip/hf_configs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/hf_configs.py -------------------------------------------------------------------------------- /eva_clip/hf_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/hf_model.py -------------------------------------------------------------------------------- /eva_clip/loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/loss.py -------------------------------------------------------------------------------- /eva_clip/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/model.py -------------------------------------------------------------------------------- /eva_clip/model_configs/EVA01-CLIP-B-16.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/model_configs/EVA01-CLIP-B-16.json -------------------------------------------------------------------------------- /eva_clip/model_configs/EVA01-CLIP-g-14-plus.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/model_configs/EVA01-CLIP-g-14-plus.json -------------------------------------------------------------------------------- /eva_clip/model_configs/EVA01-CLIP-g-14.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/model_configs/EVA01-CLIP-g-14.json -------------------------------------------------------------------------------- /eva_clip/model_configs/EVA02-CLIP-B-16.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/model_configs/EVA02-CLIP-B-16.json -------------------------------------------------------------------------------- /eva_clip/model_configs/EVA02-CLIP-L-14-336.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/model_configs/EVA02-CLIP-L-14-336.json -------------------------------------------------------------------------------- /eva_clip/model_configs/EVA02-CLIP-L-14.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/model_configs/EVA02-CLIP-L-14.json -------------------------------------------------------------------------------- /eva_clip/model_configs/EVA02-CLIP-bigE-14-plus.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/model_configs/EVA02-CLIP-bigE-14-plus.json -------------------------------------------------------------------------------- /eva_clip/model_configs/EVA02-CLIP-bigE-14.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/model_configs/EVA02-CLIP-bigE-14.json -------------------------------------------------------------------------------- /eva_clip/modified_resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/modified_resnet.py -------------------------------------------------------------------------------- /eva_clip/openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/openai.py -------------------------------------------------------------------------------- /eva_clip/pretrained.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/pretrained.py -------------------------------------------------------------------------------- /eva_clip/rope.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/rope.py -------------------------------------------------------------------------------- /eva_clip/timm_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/timm_model.py -------------------------------------------------------------------------------- /eva_clip/tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/tokenizer.py -------------------------------------------------------------------------------- /eva_clip/transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/transform.py -------------------------------------------------------------------------------- /eva_clip/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/transformer.py -------------------------------------------------------------------------------- /eva_clip/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/eva_clip/utils.py -------------------------------------------------------------------------------- /example_inputs/hinton.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/example_inputs/hinton.jpeg -------------------------------------------------------------------------------- /example_inputs/lecun.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/example_inputs/lecun.jpg -------------------------------------------------------------------------------- /example_inputs/lifeifei.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/example_inputs/lifeifei.jpg -------------------------------------------------------------------------------- /example_inputs/liuyifei.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/example_inputs/liuyifei.png -------------------------------------------------------------------------------- /example_inputs/pengwei.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/example_inputs/pengwei.jpg -------------------------------------------------------------------------------- /example_inputs/rihanna.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/example_inputs/rihanna.webp -------------------------------------------------------------------------------- /example_inputs/zcy.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/example_inputs/zcy.webp -------------------------------------------------------------------------------- /flux/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/flux/__init__.py -------------------------------------------------------------------------------- /flux/math.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/flux/math.py -------------------------------------------------------------------------------- /flux/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/flux/model.py -------------------------------------------------------------------------------- /flux/modules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /flux/modules/autoencoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/flux/modules/autoencoder.py -------------------------------------------------------------------------------- /flux/modules/conditioner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/flux/modules/conditioner.py -------------------------------------------------------------------------------- /flux/modules/layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/flux/modules/layers.py -------------------------------------------------------------------------------- /flux/sampling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/flux/sampling.py -------------------------------------------------------------------------------- /flux/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/flux/util.py -------------------------------------------------------------------------------- /models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pulid/attention_processor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/pulid/attention_processor.py -------------------------------------------------------------------------------- /pulid/encoders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/pulid/encoders.py -------------------------------------------------------------------------------- /pulid/encoders_transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/pulid/encoders_transformer.py -------------------------------------------------------------------------------- /pulid/pipeline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/pulid/pipeline.py -------------------------------------------------------------------------------- /pulid/pipeline_flux.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/pulid/pipeline_flux.py -------------------------------------------------------------------------------- /pulid/pipeline_v1_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/pulid/pipeline_v1_1.py -------------------------------------------------------------------------------- /pulid/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/pulid/utils.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/requirements.txt -------------------------------------------------------------------------------- /requirements_fp8.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ToTheBeginning/PuLID/HEAD/requirements_fp8.txt --------------------------------------------------------------------------------