PhotoMaker with RealVisXL V4.0 (safetensors)

RealVisXL V4.0 with the PhotoMaker v1 adapter, so TokForge can put the person from a reference photo into any scene you describe.

Published by TokForge for on-device inference.

What it is Image generator (reference photo)
Format safetensors for stable-diffusion.cpp: f16 SDXL base in one file, PhotoMaker v1 adapter, TAESDXL decoder
Runs on Android phones with a Snapdragon chip (stable-diffusion.cpp on the CPU)
Phone class 16 GB RAM or more (TokForge catalog)
Download 7.87 GB (4 files)
Base model SG161222/RealVisXL_V4.0, TencentARC/PhotoMaker
License Several: CreativeML OpenRAIL++-M plus SG_161222's Civitai terms (base), Apache-2.0 (PhotoMaker), MIT (TAESDXL)

TokForge

Runs on-device in the TokForge app.

Use it in TokForge

  1. Install TokForge from Google Play.
  2. On Android, open Models > Recommended > Image and download PhotoMaker SDXL (Reference Identity). TokForge lists it on phones with 16 GB RAM or more.
  3. In a chat, attach a clear face photo of one person as a reference, then describe the scene (for example "me as a superhero, face visible"). TokForge adds PhotoMaker's img trigger word for you.
  4. The model runs on the phone; once it is downloaded, making pictures needs no connection.

For 8 GB phones, use the lighter darkmaniac7/TokForge-SD15-IPAdapter plus-face tier instead.

Collections: TokForge Image Models (Android).

Files

File Size What it is
photomaker-v1.safetensors 934 MB PhotoMaker v1 ID encoder and fuse module, sd.cpp format (Apache-2.0)
realvisxl-v40-fp16.safetensors 6.94 GB RealVisXL V4.0 base: dual CLIP text encoders, UNet and VAE in one f16 sd.cpp safetensors
taesdxl_decoder_f16.safetensors 2.45 MB TAESDXL tiny VAE decoder (f16) for the fast decode option (MIT)
MD5SUMS 125 B md5 of the base and the PhotoMaker adapter

MD5SUMS carries the md5 of the base and the adapter. Despite the repo name, there is no GGUF here: the base must stay unquantized (see below).

About the model

The single-subject reference-identity image route for the TokForge Android app. Attach a photo of a person, then render that person in any scene. PhotoMaker stacks the reference into the img trigger word and merges an ID embedding into the SDXL UNet, so the rendered face stays recognizable while the prompt drives the whole scene.

This bundle runs on the on-device stable-diffusion.cpp engine via its native --photo-maker path, on the CPU. Full SDXL at 1024x1024 is heavy, so TokForge offers this tier on 16 GB-class phones with a Snapdragon chip.

File License Contents
realvisxl-v40-fp16.safetensors OpenRAIL++ RealVisXL V4.0 (full, multi-step SDXL photoreal finetune), dual CLIP text encoders + UNet + VAE in one self-contained f16 sd.cpp safetensors
photomaker-v1.safetensors Apache-2.0 PhotoMaker-v1 ID encoder + fuse module (TencentARC/PhotoMaker), loaded via --photo-maker to condition identity on the attached reference photo
taesdxl_decoder_f16.safetensors MIT TAESDXL tiny VAE decoder for the fast decode option

Why the full RealVisXL V4.0, and why f16

PhotoMaker conditions identity by merging its ID embedding LoRA-style into the SDXL UNet weights. This needs:

  • A multi-step base, not a few-step Lightning checkpoint. PhotoMaker's ID merge takes effect over a start_merge_step schedule across the full 20 to 30 step denoise; a 6-step Lightning floor leaves too little room for the identity merge to converge. So this tier ships the full RealVisXL V4.0, not the Lightning variant the IP-Adapter tier ships.
  • An f16 (non-quantized) base. The LoRA-style merge requires F32-promotable weights; on a quantized base the sd.cpp helper asserts (src1 must be F32) on both the OpenCL and CPU backends. The base is therefore kept at f16, the same precision choice as the sibling IP-Adapter bundle.

Render settings

Setting Value
sampler euler
steps 20
cfg-scale 5.0
resolution 1024x1024 (SDXL native)

PhotoMaker keys identity to the img trigger word, so keep img in the prompt right after the class word (a man img, a woman img). The app inserts this automatically. Keep the face visible and unobstructed for a recognizable identity.

TokForge runs it through stable-diffusion.cpp, equivalent to:

sd -M img_gen \
   -m realvisxl-v40-fp16.safetensors \
   --photo-maker photomaker-v1.safetensors \
   --input-id-images-dir <dir_with_your_face.jpg> \
   -p "a photo of a man img as a superhero, face visible, detailed face, looking at viewer" \
   -n "<strong negative>" \
   --steps 20 --cfg-scale 5.0 \
   --sampling-method euler -H 1024 -W 1024

How it was made

  • Base: realvisxl-v40-fp16.safetensors, a self-contained sd.cpp SDXL safetensors built from SG161222/RealVisXL_V4.0 (full, non-Lightning; fp16 variant weights) via the standard diffusers to single-file SDXL converter (convert_diffusers_to_original_sdxl.py --half). Same layout as the TokForge IP-Adapter tier's SDXL base, with the full multi-step weights.
  • Adapter: photomaker-v1.safetensors, the sd.cpp-compatible PhotoMaker-v1 safetensors (TencentARC/PhotoMaker, Apache-2.0). It is byte-identical to photomaker-v1.safetensors in bssrdf/PhotoMaker.
  • taesdxl_decoder_f16.safetensors: an f16 decoder-only export of madebyollin's TAESDXL.

Limitations

  • Single subject only; for two people, use TokForge-SDXL-IPAdapter.
  • Full SDXL on the phone CPU needs a 16 GB-class phone.

License

This is an aggregate of independently-licensed components, and each retains its own license (the bundled TAESDXL decoder is MIT, see Credits):

  • RealVisXL V4.0 base (realvisxl-v40-fp16.safetensors): OpenRAIL++ (SG161222/RealVisXL_V4.0, the SDXL openrail++ license). Use must comply with the OpenRAIL++ use-based restrictions.
  • PhotoMaker-v1 adapter (photomaker-v1.safetensors): Apache-2.0 (TencentARC/PhotoMaker).

RealVisXL is also under SG_161222's Civitai terms: credit required, no selling the model or merges of it.

Credits

  • RealVisXL V4.0 by SG_161222 (Civitai, Hugging Face). Used under the CreativeML OpenRAIL++-M license and the creator's Civitai terms. SG_161222's Civitai terms: credit required, no selling the model or merges of it.
  • Stable Diffusion XL 1.0 by Stability AI (Hugging Face). Used under the CreativeML OpenRAIL++-M license.
  • PhotoMaker by Tencent ARC (Hugging Face). Used under the Apache-2.0 license.
  • PhotoMaker v1 safetensors conversion by bssrdf (Hugging Face). Used under the Apache-2.0 license. photomaker-v1.safetensors is byte-identical to it.
  • TAESDXL tiny VAE by madebyollin (Hugging Face). Used under the MIT license.
  • The single-file SDXL checkpoint was made with convert_diffusers_to_original_sdxl.py from diffusers by Hugging Face (Apache-2.0).
  • Runs on-device with stable-diffusion.cpp by leejet (MIT).
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for darkmaniac7/TokForge-SDXL-PhotoMaker-GGUF

Quantized
(1)
this model

Collection including darkmaniac7/TokForge-SDXL-PhotoMaker-GGUF