Instructions to use georgefen/Face-Landmark-ControlNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use georgefen/Face-Landmark-ControlNet with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("georgefen/Face-Landmark-ControlNet") pipe = StableDiffusionControlNetPipeline.from_pretrained( "fill-in-base-model", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
Download annotator/uniformer/mmcv/parallel/__init__.py from georgefen/Face-Landmark-ControlNet: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/georgefen/Face-Landmark-ControlNet/resolve/main/annotator/uniformer/mmcv/parallel/__init__.py
- Command line
-
hf download hf://georgefen/Face-Landmark-ControlNet/annotator/uniformer/mmcv/parallel/__init__.py
-
curl -L -o __init__.py https://huggingface.co/georgefen/Face-Landmark-ControlNet/resolve/main/annotator/uniformer/mmcv/parallel/__init__.py
505 Bytes
| # Copyright (c) OpenMMLab. All rights reserved. | |
| from .collate import collate | |
| from .data_container import DataContainer | |
| from .data_parallel import MMDataParallel | |
| from .distributed import MMDistributedDataParallel | |
| from .registry import MODULE_WRAPPERS | |
| from .scatter_gather import scatter, scatter_kwargs | |
| from .utils import is_module_wrapper | |
| __all__ = [ | |
| 'collate', 'DataContainer', 'MMDataParallel', 'MMDistributedDataParallel', | |
| 'scatter', 'scatter_kwargs', 'is_module_wrapper', 'MODULE_WRAPPERS' | |
| ] | |