Run this model with HF Jobs
Run CrucibleAI/ControlNetMediaPipeFace on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/CrucibleAI/ControlNetMediaPipeFace. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/CrucibleAI/ControlNetMediaPipeFace on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use CrucibleAI/ControlNetMediaPipeFace with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CrucibleAI/ControlNetMediaPipeFace with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("CrucibleAI/ControlNetMediaPipeFace") pipe = StableDiffusionControlNetPipeline.from_pretrained( "stabilityai/stable-diffusion-2-1-base", controlnet=controlnet ) - MediaPipe
How to use CrucibleAI/ControlNetMediaPipeFace with MediaPipe:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Error - No faces detected
Hi, I'm trying to operate this ,I have downloaded the yaml and safetensor files but Im getting 'No faces detected in controlnet image for Mediapipe face annotator.'
Can this work with SD 1.5 ?
Yes. The repository has versions for both SD1.5 and 2.1. "No faces detected in ControlNet Image for Mediapipe face annotator" means that the mediapipe component (the preprocessing step) was not able to recognize any faces. Some common causes of this can be using images of non-humans (i.e., illustrations or anime) or using images that are too blurry or small.