Instructions to use alaa-lab/InstructCV with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use alaa-lab/InstructCV 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("alaa-lab/InstructCV", 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
Commit History
Update README.md 8fa2b50
Update README.md d35a13b
Update README.md d23c2f4
Update README.md 8634b1a
Upload diffusion_pytorch_model.bin c10d355
Upload config.json ab11415
Upload 2 files b870724
Upload 7 files cbfd890
Upload 4 files 3d2ef86
initial commit cb5df7d
Yulu Gan commited on