Downloads · 30 days
7
0% of all-time downloads
ostris/photo-maker-face-sdxl
photo-maker-face-sdxl is a machine learning model from ostris. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
These are just chunks of the weights broken out of TencentARC/PhotoMaker to allow easier fine tuning and loading of the individual pieces. The weights here are identical to the original in every other way.
Downloads · 30 days
7
0% of all-time downloads
All-time downloads
1.8K
Public
Parameters
326M
881 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors881 MB · 100%
From the Hugging Face model README
These are just chunks of the weights broken out of TencentARC/PhotoMaker to allow easier fine tuning and loading of the individual pieces. The weights here are identical to the original in every other way.
The CLIP vision model can be loaded with
image_preprocessor = CLIPImageProcessor.from_pretrained("ostris/photo-maker-face-sdxl")
clip_vision = CLIPVisionModelWithProjection.from_pretrained(
"ostris/photo-maker-face-sdxl",
ignore_mismatched_sizes=True
)
It will warn about additional weights because the fuse_model and visual_projection_2 are included in the file but not needed for CLIP.
Using the included python file (modified only to handle from pretrained for now), the PhotoMakerIDEncoder can be loaded with
id_encoder = PhotoMakerIDEncoder.from_pretrained("ostris/photo-maker-face-sdxl")
The fuse weights are included in the vision encoder, but are also seperated out in pytorch_fuse_module_weights.safetensors so they can be loaded seperatly if only fine
tuning the fuse_module and / or LoRA.
The LoRA can also be loaded seperatly with standard Diffusers LoRA loading.
pipeline.load_lora_weights("ostris/photo-maker-face-sdxl", adapter_name="photomaker")