Safetensors
face-swapping
research-only
ALADDIN / README.md
messlav's picture
Gate form: no square brackets in the FLUX checkbox label
0e45ba3 verified
|
Raw History Blame Contribute Delete
7.66 kB
metadata
license: other
license_name: aladdin-license
license_link: LICENSE
base_model: black-forest-labs/FLUX.1-Krea-dev
tags:
  - face-swapping
  - research-only
extra_gated_heading: Request access to ALADDIN
extra_gated_description: >-
  ALADDIN is released for non-commercial research only, under the ALADDIN
  License and the licenses of its third-party components. Your answers are
  shared with the repository owners and used only to manage access to ALADDIN.
extra_gated_prompt: >-
  ALADDIN is a face-swapping model. Access is granted for non-commercial
  research only. Before requesting access, read the ALADDIN License (LICENSE)
  and the licenses of the third-party components listed in this model card. By
  requesting access, you agree to all of them. Access may be revoked if they are
  violated.
extra_gated_button_content: Agree and request access
extra_gated_fields:
  First name: text
  Last name: text
  Affiliation (university, lab or company): text
  Job title or position: text
  Institutional email: text
  Country: country
  Intended use:
    type: select
    options:
      - Academic research on face generation
      - Research on deepfake detection
      - Other non-commercial research
  Briefly describe how you will use ALADDIN: text
  I have read and agree to the ALADDIN License (LICENSE file): checkbox
  I will comply with the licenses of the third-party components listed in the model card, including the FLUX-1-dev Non-Commercial License: checkbox
  I will not use ALADDIN to impersonate people, commit fraud, or test identity verification systems I am not authorized to test: checkbox
  I will not redistribute the ALADDIN weights, and I understand that my access may be revoked if I violate these terms: checkbox

ALADDIN

ALADDIN (Adversarial LAtent Diffusion Distillation for One-Step Identity SwappiNg) is a one-step face-swapping model, accepted to WACV 2027.

How to use

Install the code from https://github.com/isdevnull/aladdin and follow its README. After you accept the terms on this page and log in with hf auth login, the code downloads the weights from this repository.

Folder Model
student-l1/ Student λ=1, one step (default)
student-l3/ Student λ=3, one step: more target preservation, less identity transfer
teacher/ Teacher; also used by the teacher-branch-off preset and to train the Students

Each folder holds config.json, model.safetensors (the LoRA and the identity cross-attention layers) and prompt_embeds.safetensors (the precomputed text embeddings of the prompt).

Intended use

ALADDIN is released for non-commercial research, in particular research on face generation and on the detection of face swaps.

Out-of-scope use

ALADDIN must not be used to impersonate real people, to commit or prepare fraud or identity theft, to attack or bypass identity verification, KYC or liveness systems without the written authorization of their operator, or to create content depicting a real person without their consent, including sexual, defamatory or harassing content. The full list of restrictions is in the ALADDIN License.

Responsible release

Face swapping can be misused to produce non-consensual or deceptive imagery, and a one-step method lowers the cost of doing so at scale. Our interest in the problem comes from identity verification, where realistic swaps are needed to train and stress-test the systems that detect them. Publicly available tools already produce convincing swaps, so defenders need training examples at least as strong as those available to attackers.

We therefore release ALADDIN in stages. First, we openly release a classifier that identifies images generated by ALADDIN. It is specific to our model and is not a general deepfake detector, and detection alone should be combined with other safeguards. The code is publicly available, while the model weights are available only through gated access for non-commercial research.

License

The ALADDIN Model is licensed by the ALADDIN authors under the ALADDIN License, which consists of the AI Pubs Open RAIL-M License v0.1 and the ALADDIN Additional Terms. The ALADDIN License allows non-commercial research use only and prohibits, among other things, illegal use, harmful or abusive content, impersonation, and attacks on identity verification systems. It does not permit redistribution of the weights.

Third-party components

ALADDIN is built on, and is used together with, the third-party models below, and it was trained with the help of third-party models and datasets. These components remain subject to their own licenses, and any use of them, including any manual or automatic download, must follow those licenses. Several of them allow non-commercial research use only. Nothing in the ALADDIN License grants rights in these components. To the extent that there is any conflict between the ALADDIN License and a third-party license, the more restrictive terms apply.

Required to run ALADDIN (download them from their original sources; their licenses apply to your use): FLUX.1 Krea [dev], PuLID, EVA-CLIP, InsightFace face recognition models, facexlib, OminiControl. The identity cross-attention layers of ALADDIN are initialised from PuLID v0.9.1 (Apache-2.0) and modified by training.

Used to train ALADDIN: Arc2Face dataset, VGGFace2-HQ, DECA and FLAME, 6DRepNet, ArcFace R100 trained on Glint360K (InsightFace terms: non-commercial research only), SegFormer face-parsing model, LPIPS, improved aesthetic predictor.

FLUX.1 Krea [dev] attribution. The FLUX.1 [dev] Model is licensed by Black Forest Labs Inc. under the FLUX.1 [dev] Non-Commercial License. Copyright Black Forest Labs Inc. IN NO EVENT SHALL BLACK FOREST LABS INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL. The ALADDIN authors have modified the FLUX.1 [dev] Model by training LoRA adapters and identity-conditioning layers on top of it. ALADDIN is not an official product of Black Forest Labs Inc. and has not been endorsed by it.

Citation

@misc{shchekotov2026aladdinadversariallatentdiffusion,
      title={ALADDIN: Adversarial Latent Diffusion Distillation for One-Step Identity Swapping},
      author={Ivan Shchekotov and Timofei Gritsaev and Viacheslav Pirogov and Dmitry Vetrov},
      year={2026},
      eprint={2610.37503},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2610.37503},
}