Thytu's picture
Update README.md
2c73909 verified
---
tags:
- image-to-image
- lora
- diffusers
- template:diffusion-lora
widget:
- output:
url: images/_ki-bY_sewZCIApJgDYQv.png
text: Replace the face with Nicolas Cage's face
- output:
url: images/8VjJQRIuk6hOKdVSRQHaN.png
text: Replace the face with Nicolas Cage's face
- output:
url: images/cO-qVnU-o79Zo94LMyF2w.png
text: Replace the face with Nicolas Cage's face
- output:
url: images/HBefBm8iIFcH--IMcipi0.png
text: Replace the face with Nicolas Cage's face
- output:
url: images/leLq1_DkeopjjKybaqKY2.png
text: Replace the face with Nicolas Cage's face
base_model: black-forest-labs/FLUX.1-Kontext-dev
instance_prompt: null
license: mit
---
# FLUX.1-Kontext-dev-cage-ify
<Gallery />
## Model description
# ๐ŸŽญ Cage-ify
[![Demo](https:&#x2F;&#x2F;img.shields.io&#x2F;badge&#x2F;๐Ÿš€_Try_It_Live-brightgreen)](https:&#x2F;&#x2F;fal.ai&#x2F;models&#x2F;fal-ai&#x2F;image-editing&#x2F;cage-ify)
[![License: MIT](https:&#x2F;&#x2F;img.shields.io&#x2F;badge&#x2F;License-MIT-yellow.svg)](https:&#x2F;&#x2F;opensource.org&#x2F;licenses&#x2F;MIT)
[![Twitter](https:&#x2F;&#x2F;img.shields.io&#x2F;twitter&#x2F;url&#x2F;https&#x2F;twitter.com&#x2F;ThytuVDM.svg?style&#x3D;social&amp;label&#x3D;Follow%20%ThytuVDM)](https:&#x2F;&#x2F;twitter.com&#x2F;ThytuVDM)
&gt; Transform any face into Nicolas Cage&#39;s face while maintaining the original expression, lighting, and pose.
## ๐ŸŽฏ What is Cage-ify?
Cage-ify is a custom LoRA fine-tune of FLUX.1 Kontext that can replace any human face with Nicolas Cage&#39;s face while preserving the original facial expression, lighting conditions, and head positioning.
### โœจ Key Features
- **๐ŸŽญ Perfect Face Replacement**: Seamlessly swaps any face with Nicolas Cage
- **๐ŸŽจ Expression Matching**: Maintains original facial expressions
- **๐Ÿ’ก Lighting Preservation**: Keeps original lighting and shadows
- **๐Ÿ“ Pose Retention**: Preserves head position and angle
- **๐ŸŒ Universal Compatibility**: Works on any photo with a visible face
## ๐Ÿš€ Quick Start
### Try Online (Recommended)
[**๐ŸŽฎ Try Cage-ify Live โ†’**](https:&#x2F;&#x2F;fal.ai&#x2F;models&#x2F;fal-ai&#x2F;image-editing&#x2F;cage-ify)
### API Usage
&#x60;&#x60;&#x60;python
import fal_client
def cage_ify_image(image_url):
result &#x3D; fal_client.submit(
&quot;fal-ai&#x2F;flux-kontext-lora&quot;,
arguments&#x3D;{
&quot;image_url&quot;: image_url,
&quot;prompt&quot;: &quot;Transform the face into Nicolas Cage&#39;s face&quot;,
&quot;lora_path&quot;: &quot;your-lora-path-here&quot;
}
)
return result
&#x60;&#x60;&#x60;
## ๐Ÿ› ๏ธ How It Works
### Training Process
1. **Data Collection**: Gathered 100+ high-quality Nicolas Cage images
2. **Reverse Engineering**: Used FLUX.1 Kontext to transform Cage faces into diverse other faces
3. **Dataset Creation**: Flipped the pairs to create &quot;other face โ†’ Cage&quot; training data
4. **LoRA Training**: Fine-tuned FLUX.1 Kontext [dev] using the dataset
## ๐ŸŽจ Use Cases
If you really need a reason to why we should Cage-ify everything, here are some:
- **๐ŸŽฌ Movie Poster Parodies**: Cage-ify your favorite films
- **๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Family Photos**: Make everyone in your family look like Nicolas Cage
- **๐ŸŽจ Art Projects**: Creative digital art and collages
- **๐Ÿ™ Our True Leader**: Spray the words
## ๐Ÿ™ Acknowledgments
- **Black Forest Labs** for creating FLUX.1 Kontext
- **fal.ai** for providing training and inference infrastructure
- **Nicolas Cage** for being the One True God of faces
- **The Internet** for existing
## ๐Ÿ“ž Contact
- **Twitter**: [@ThytuVDM](https:&#x2F;&#x2F;twitter.com&#x2F;ThytuVDM)
- **Issues**: [GitHub Issues](https:&#x2F;&#x2F;github.com&#x2F;Thytu&#x2F;cage-ify&#x2F;issues)
---
&lt;div align&#x3D;&quot;center&quot;&gt;
**โญ Star this repo if Cage-ify brought joy to your life! โญ**
*&quot;I&#39;m gonna steal the Declaration of Independence... and every face on the internet.&quot;* - Nicolas Cage (probably)
&lt;&#x2F;div&gt;
## Download model
[Download](/Thytu/FLUX.1-Kontext-dev-cage-ify/tree/main) them in the Files & versions tab.