ControlNet / README.md
akhaliq's picture
akhaliq HF staff
add gradio demo
f92d8ee
|
raw
history blame
3.15 kB
---
license: openrail
---
This is the pretrained weights and some other detector weights of ControlNet.
See also: https://github.com/lllyasviel/ControlNet
# Gradio
We support a [Gradio](https://github.com/gradio-app/gradio) Web UI to run ControlNet:
[![Open In Spaces](https://camo.githubusercontent.com/00380c35e60d6b04be65d3d94a58332be5cc93779f630bcdfc18ab9a3a7d3388/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f25463025394625413425393725323048756767696e67253230466163652d5370616365732d626c7565)](https://huggingface.co/spaces/hysts/ControlNet)
# Description of Files
ControlNet/models/control_sd15_canny.pth
- The ControlNet+SD1.5 model to control SD using canny edge detection.
ControlNet/models/control_sd15_depth.pth
- The ControlNet+SD1.5 model to control SD using Midas depth estimation.
ControlNet/models/control_sd15_hed.pth
- The ControlNet+SD1.5 model to control SD using HED edge detection (soft edge).
ControlNet/models/control_sd15_mlsd.pth
- The ControlNet+SD1.5 model to control SD using M-LSD line detection (will also work with traditional Hough transform).
ControlNet/models/control_sd15_normal.pth
- The ControlNet+SD1.5 model to control SD using normal map. Best to use the normal map generated by that Gradio app. Other normal maps may also work as long as the direction is correct (left looks red, right looks blue, up looks green, down looks purple).
ControlNet/models/control_sd15_openpose.pth
- The ControlNet+SD1.5 model to control SD using OpenPose pose detection. Directly manipulating pose skeleton should also work.
ControlNet/models/control_sd15_scribble.pth
- The ControlNet+SD1.5 model to control SD using human scribbles. The model is trained with boundary edges with very strong data augmentation to simulate boundary lines similar to that drawn by human.
ControlNet/models/control_sd15_seg.pth
- The ControlNet+SD1.5 model to control SD using semantic segmentation. The protocol is ADE20k.
ControlNet/annotator/ckpts/body_pose_model.pth
- Third-party model: Openpose’s pose detection model.
ControlNet/annotator/ckpts/hand_pose_model.pth
- Third-party model: Openpose’s hand detection model.
ControlNet/annotator/ckpts/dpt_hybrid-midas-501f0c75.pt
- Third-party model: Midas depth estimation model.
ControlNet/annotator/ckpts/mlsd_large_512_fp32.pth
- Third-party model: M-LSD detection model.
ControlNet/annotator/ckpts/mlsd_tiny_512_fp32.pth
- Third-party model: M-LSD’s another smaller detection model (we do not use this one).
ControlNet/annotator/ckpts/network-bsds500.pth
- Third-party model: HED boundary detection.
ControlNet/annotator/ckpts/upernet_global_small.pth
- Third-party model: Uniformer semantic segmentation.
ControlNet/training/fill50k.zip
- The data for our training tutorial.
# Misuse, Malicious Use, and Out-of-Scope Use
The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes.