Instructions to use GreeneryScenery/SheepsControlV4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use GreeneryScenery/SheepsControlV4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("GreeneryScenery/SheepsControlV4", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
| datasets: | |
| - GreeneryScenery/SheepsCanny | |
| pipeline_tag: image-to-image | |
| tags: | |
| - art | |
| - ControlNet | |
| # V4 | |
| 3 epochs. 🤗 Best model yet. Check out the model on [Replicate](https://replicate.com/greeneryscenery/sheeps-control-v4) as well. | |
| <img src = 'https://huggingface.co/GreeneryScenery/SheepsControlV4/resolve/main/overview.png'> | |
| ## Examples | |
| <details> | |
| <summary> Click to expand </summary> | |
| 1. | |
| Conditioning image: | |
| <img src = 'https://huggingface.co/GreeneryScenery/SheepsControlV4/resolve/main/airplane.jpg' style = 'width: 256px'> | |
| Images: | |
| arafed airplane flying in the sky with a green tail | |
| <img src = 'https://huggingface.co/GreeneryScenery/SheepsControlV4/resolve/main/arafed airplane flying in the sky with a green tail.png' style = 'width: 256px'> | |
| arafed jet flying in the air with a royal air force logo on it | |
| <img src = 'https://huggingface.co/GreeneryScenery/SheepsControlV4/resolve/main/arafed jet flying in the air with a royal air force logo on it.png' style = 'width: 256px'> | |
| Jet | |
| <img src = 'https://huggingface.co/GreeneryScenery/SheepsControlV4/resolve/main/Jet.png' style = 'width: 256px'> | |
| Plane | |
| 2. | |
| Conditioning image: | |
| <img src = 'https://huggingface.co/GreeneryScenery/SheepsControlV4/resolve/main/turtle.png' style = 'width: 256px'> | |
| Image: | |
| Cute turtle | |
| <img src = 'https://huggingface.co/GreeneryScenery/SheepsControlV4/resolve/main/Cute turtle.png' style = 'width: 256px'> | |
| 3. | |
| Conditioning image: | |
| <img src = 'https://huggingface.co/GreeneryScenery/SheepsControlV4/resolve/main/sheep.png' style = 'width: 256px'> | |
| Image: | |
| A sheep | |
| <img src = 'https://huggingface.co/GreeneryScenery/SheepsControlV4/resolve/main/A sheep.png' style = 'width: 256px'> | |
| 4. | |
| Conditioning image: | |
| <img src = 'https://huggingface.co/GreeneryScenery/SheepsControlV4/resolve/main/dog.png' style = 'width: 256px'> | |
| Image: | |
| A dog sitting down | |
| <img src = 'https://huggingface.co/GreeneryScenery/SheepsControlV4/resolve/main/A dog sitting down.png' style = 'width: 256px'> | |
| <details> |