Zum Inhalt springen
ModelAufgelistetExtern
Herunterladen

Face Landmark ControlNet

I trained using ControlNet, which was proposed by lllyasviel, on a face dataset. By using facial landmarks as a condition, finer face control can be achieved.

ArtControlNetVersionBBewertung

Modellquelle

Art
ControlNet
Dateigröße
1,35 GB
Version
vdiffusion_pytorch_model
Aktualisiert
6. Okt. 2026
Quelle
Hugging Face

Quellenbeschreibung

Face landmark ControlNet

ControlNet with Face landmark

I trained using ControlNet, which was proposed by lllyasviel, on a face dataset. By using facial landmarks as a condition, finer face control can be achieved.

Currently, I’m using Stable Diffusion 1.5 as the base model and dlib as the face landmark detector (those with the capability can replace it with a better one). The checkpoint can be found at "models" folder.

Create conda environment:

conda env create -f environment.yaml
conda activate control
wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
bzip2 -d shape_predictor_68_face_landmarks.dat.bz2

Testing it by:

python gradio_landmark2image.py

Generate face with the identical poses and expression

To create a new face, input an image and extract the facial landmarks from it. These landmarks will be used as a reference to redraw the face while ensuring that the original features are retained.

Generate face with the identical poses and expression

Control the facial expressions and poses of generated images

For the images we generated, we have the prompt and random seed used to generate them. While keeping the prompt and random seed, we can also edit the landmarks to modify the facial expressions and postures of the generated results.

Controlthefacialexpressionsandposesofgeneratedimages

Credits

Thanks to lllyasviel for his amazing work on https://github.com/lllyasviel/ControlNet!, this is totaly based on his work.

This is just a proof of concept and should not be applied for any risky purposes.

Quellen

1 Quelle
Hugging FacePrimärVersion eef1de1c47baa1ea318581f53f4f44748f96ddf1
huggingface.co/georgefen/Face-Landmark-ControlNet/tree/eef1de1c47baa1ea318581f53f4f44748f96ddf1

Verifiziert 6. Okt.

Modellartefakte

1 Artefakt

models_for_diffusers/diffusion_pytorch_model.bin

bin · 1,35 GB · SHA-256 98bcc648449f…ddfb · Hugging Face

Herunterladen

Quellenauszüge

2 Auszüge

--- license: openrail tags: - diffusers - stable-diffusion - controlnet --- # Face landmark ControlNet ## ControlNet with Face landmark I trained using [ControlNet](https://github.com/lllyasviel/ControlNet), which was proposed by lllyasviel, on a face dataset. By using facial landmarks as a condition, finer face control can be achieved. Currently, I’m using Stable Diffusion 1.5 as the base model and dlib as the face landmark detector (those with the capability can replace it with a better one). The checkpoint can be found at "models" folder. **Create conda environment:** ```sh conda env create -f environment.yaml conda activate control wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 bzip2 -d shape_predictor_68_face_landmarks.dat.bz2 ``` **Testing it by:** ``` python gradio_landmark2image.py ``` ## Generate face with the identical poses and expression To create a new face, input an image and extract the facial landmarks from it. These landmarks will be used as a reference to redraw the face while ensuring that the original features are retained. ![Generate face with the identical poses and expression](https://raw.githubusercontent.com/Georgefwt/Face-Landmark-ControlNet/master/assets/Generatefacewiththeidenticalposesandexpression.png) ## Control the facial expressions and poses of generated images For the images we generated, we have the prompt and random seed used to generate them. While keeping the prompt and random seed, we can also edit the landmarks to modify the facial expressions and postures of the generated results. ![Controlthefacialexpressionsandposesofgeneratedimages](https://raw.githubusercontent.com/Georgefwt/Face-Landmark-ControlNet/master/assets/Controlthefacialexpressionsandposesofgeneratedimages.png) ## Credits **Thanks to lllyasviel for his amazing work on [https://github.com/lllyasviel/ControlNet](https://github.com/lllyasviel/ControlNet)!, this is totaly based on his work.** **This is just a proof of concept and should not be applied for any risky purposes.**

Source context: 0 downloads · 131 likes · Library diffusers · Repo georgefen/Face-Landmark-ControlNet