Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
Generates new images of a person from one face photo and a text prompt, keeping the face recognizable. Made for developers and artists who run Stable Diffusion XL pipelines in Python.
InstantID by InstantX is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download InstantX/InstantID
InstantID makes new pictures of one specific person from a single face photo and a text prompt. It needs no extra training for each new face, so you change the style and scene by changing the prompt. This repository holds the model files that plug into a Stable Diffusion XL pipeline.
It suits developers, artists and researchers who generate images in Python and want the result to still look like the person in a reference photo. Use only faces you have the right to use.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Design and art | Illustrators | Start from one reference face and try different looks and moods | A portrait of the same person in a vintage film style |
| Marketing | Content teams | Make varied pictures of a person who agreed to it, from one photo | Several images of one model in different settings |
| Software | App developers | Call the pipeline from Python inside an image app | A tool where a user uploads a selfie and picks a style |
| Research | Machine learning researchers | Study identity-preserving generation and tune its two strength settings | Compare results at different adapter strengths |
If you do not write Python, you can skip the local setup and try the hosted demo the card mentions.
| Use case | Who | What they get back |
|---|---|---|
| Keep one face across styles | Artists | New images that still look like the person in your photo |
| Tune the look | Developers | Images adjusted with the two strength settings |
| Try it before installing | Anyone | Pictures from the hosted demo, with no local setup |
You need Python with pip and a few libraries before the first run.
pip install -U huggingface_hub hf download InstantX/InstantID
from huggingface_hub import hf_hub_download hf_hub_download(repo_id="InstantX/InstantID", filename="ControlNetModel/config.json", local_dir="./checkpoints") hf_hub_download(repo_id="InstantX/InstantID", filename="ControlNetModel/diffusion_pytorch_model.safetensors", local_dir="./checkpoints") hf_hub_download(repo_id="InstantX/InstantID", filename="ip-adapter.bin", local_dir="./checkpoints")
# !pip install opencv-python transformers accelerate insightface import diffusers from diffusers.utils import load_image from diffusers.models import ControlNetModel import cv2 import torch import numpy as np from PIL import Image from insightface.app import FaceAnalysis from pipeline_stable_diffusion_xl_instantid import StableDiffusionXLInstantIDPipeline, draw_kps app = FaceAnalysis(name='antelopev2', root='./', providers=['CUDAExecutionProvider', 'CPUExecutionProvider']) app.prepare(ctx_id=0, det_size=(640, 640)) face_adapter = f'./checkpoints/ip-adapter.bin' controlnet_path = f'./checkpoints/ControlNetModel' controlnet = ControlNetModel.from_pretrained(controlnet_path, torch_dtype=torch.float16) pipe = StableDiffusionXLInstantIDPipeline.from_pretrained( ... "stabilityai/stable-diffusion-xl-base-1.0", controlnet=controlnet, torch_dtype=torch.float16 ... ) pipe.cuda() pipe.load_ip_adapter_instantid(face_adapter)
Once the pipeline is loaded, you hand it one face photo and a prompt. The sample reads the face from your photo, then draws the new image. Set prompt to the picture you want first.
image = load_image("your-example.jpg")
face_info = app.get(cv2.cvtColor(np.array(face_image), cv2.COLOR_RGB2BGR))
face_emb = face_info['embedding']
face_kps = draw_kps(face_image, face_info['kps'])
pipe.set_ip_adapter_scale(0.8)
image = pipe(
... prompt, image_embeds=face_emb, image=face_kps, controlnet_conditioning_scale=0.8
... ).images[0]| Tool | What it does |
|---|---|
| FaceAnalysis | Finds the face in your photo and returns its embedding and key points |
| draw_kps | Draws the face key points into an image the pipeline uses as guidance |
| StableDiffusionXLInstantIDPipeline | Makes the picture from your prompt and the face data |
| set_ip_adapter_scale | Sets the adapter strength, 0.8 in the sample |
| controlnet_conditioning_scale | Sets the IdentityNet strength, 0.8 in the sample |
You have one clear photo of a friend who agreed to it. You keep the adapter strength at 0.8, write a prompt for an old film-camera look with grain and faded color, and pass in the face data. You get one new image of that same person in the film style.
You give the model one photo of a face and a sentence about the picture you want, and it draws that person in the new scene. The first small thing to try is the hosted demo the card links, before you install anything.
Under the hood, the face encoder pulls an embedding and key points from the photo. A ControlNet named IdentityNet takes the key points, and an IP-Adapter carries the embedding, both attached to the Stable Diffusion XL base model. Two scales set how strong each part is. Stronger identity can raise saturation and weaken how well the prompt steers the result. The sample keeps only the largest face it finds.
Generates new images of a person from one face photo and a text prompt, keeping the face recognizable. Made for developers and artists who run Stable Diffusion XL pipelines in Python.
Made by InstantX on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: InstantID makes new pictures of one specific person from a single face photo and a text prompt. It needs no extra training for each new face, so you change the style and scene by changing the prompt. This repository holds the model files that plug into a Stable Diffusion XL pipeline.
Who it suits: It suits developers, artists and researchers who generate images in Python and want the result to still look like the person in a reference photo. Use only faces you have the right to use.
Industry | Who uses it | How they use it | Example
Design and art | Illustrators | Start from one reference face and try different looks and moods | A portrait of the same person in a vintage film style
Marketing | Content teams | Make varied pictures of a person who agreed to it, from one photo | Several images of one model in different settings
Software | App developers | Call the pipeline from Python inside an image app | A tool where a user uploads a selfie and picks a style
Research | Machine learning researchers | Study identity-preserving generation and tune its two strength settings | Compare results at different adapter strengths
If you do not write Python, you can skip the local setup and try the hosted demo the card mentions.
Where to use it:
Use case | Who | What they get back
Keep one face across styles | Artists | New images that still look like the person in your photo
Tune the look | Developers | Images adjusted with the two strength settings
Try it before installing | Anyone | Pictures from the hosted demo, with no local setup
How to set it up: You need Python with pip and a few libraries before the first run.
pip install -U huggingface_hub
hf download InstantX/InstantID
from huggingface_hub import hf_hub_download
hf_hub_download(repo_id="InstantX/InstantID", filename="ControlNetModel/config.json", local_dir="./checkpoints")
hf_hub_download(repo_id="InstantX/InstantID", filename="ControlNetModel/diffusion_pytorch_model.safetensors", local_dir="./checkpoints")
hf_hub_download(repo_id="InstantX/InstantID", filename="ip-adapter.bin", local_dir="./checkpoints")
# !pip install opencv-python transformers accelerate insightface
import diffusers
from diffusers.utils import load_image
from diffusers.models import ControlNetModel
import cv2
import torch
import numpy as np
from PIL import Image
from insightface.app import FaceAnalysis
from pipeline_stable_diffusion_xl_instantid import StableDiffusionXLInstantIDPipeline, draw_kps
app = FaceAnalysis(name='antelopev2', root='./', providers=['CUDAExecutionProvider', 'CPUExecutionProvider'])
app.prepare(ctx_id=0, det_size=(640, 640))
face_adapter = f'./checkpoints/ip-adapter.bin'
controlnet_path = f'./checkpoints/ControlNetModel'
controlnet = ControlNetModel.from_pretrained(controlnet_path, torch_dtype=torch.float16)
pipe = StableDiffusionXLInstantIDPipeline.from_pretrained(
... "stabilityai/stable-diffusion-xl-base-1.0", controlnet=controlnet, torch_dtype=torch.float16
... )
pipe.cuda()
pipe.load_ip_adapter_instantid(face_adapter)
How to use it: Once the pipeline is loaded, you hand it one face photo and a prompt. The sample reads the face from your photo, then draws the new image. Set prompt to the picture you want first.
image = load_image("your-example.jpg")
face_info = app.get(cv2.cvtColor(np.array(face_image), cv2.COLOR_RGB2BGR))
face_emb = face_info['embedding']
face_kps = draw_kps(face_image, face_info['kps'])
pipe.set_ip_adapter_scale(0.8)
image = pipe(
... prompt, image_embeds=face_emb, image=face_kps, controlnet_conditioning_scale=0.8
... ).images[0]
Tool | What it does
FaceAnalysis | Finds the face in your photo and returns its embedding and key points
draw_kps | Draws the face key points into an image the pipeline uses as guidance
StableDiffusionXLInstantIDPipeline | Makes the picture from your prompt and the face data
set_ip_adapter_scale | Sets the adapter strength, 0.8 in the sample
controlnet_conditioning_scale | Sets the IdentityNet strength, 0.8 in the sample
Example: You have one clear photo of a friend who agreed to it. You keep the adapter strength at 0.8, write a prompt for an old film-camera look with grain and faded color, and pass in the face data. You get one new image of that same person in the film style.
For newcomers and experts: You give the model one photo of a face and a sentence about the picture you want, and it draws that person in the new scene. The first small thing to try is the hosted demo the card links, before you install anything.
Under the hood, the face encoder pulls an embedding and key points from the photo. A ControlNet named IdentityNet takes the key points, and an IP-Adapter carries the embedding, both attached to the Stable Diffusion XL base model. Two scales set how strong each part is. Stronger identity can raise saturation and weaken how well the prompt steers the result. The sample keeps only the largest face it finds.
Your face photo
Face encoder finds embedding and key points
IdentityNet and adapter guide the base model
Your prompt sets the style and scene
New image of the same person
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download InstantX/InstantID
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 8 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| InstantID by InstantX This page | 84,085 | 895 | — | apache-2.0 | |
| stable-diffusion-xl-base-1.0Shares text-to-image · diffusers · safetensors | 4,688,522 | 8,466 | 2.6B | openrail++ | |
| Animagine XL 4.0Shares text-to-image · diffusers · safetensors | 1,026,807 | 582 | 2.6B | openrail++ | |
| Stable Diffusion v1-5Shares text-to-image · diffusers · safetensors | 1,012,982 | 1,364 | 860M | creativeml-openrail-m | |
| Z-Image-TurboShares text-to-image · diffusers · safetensors | 765,804 | 5,594 | 6.2B | apache-2.0 | |
| FLUX.2 [klein] 4B BaseShares text-to-image · diffusers · safetensors | 743,055 | 195 | 3.9B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.
alibaba · Kit
Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…