Instructions to use miliyas/practise with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use miliyas/practise with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("miliyas/practise", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download new.py from miliyas/practise: direct link, hf CLI and curl.
- Browser
- Download file 340 Bytes
-
https://huggingface.co/miliyas/practise/resolve/main/new.py
- Command line
-
hf download hf://miliyas/practise/new.py
-
curl -L -o new.py https://huggingface.co/miliyas/practise/resolve/main/new.py
340 Bytes
| from diffusers import AutoPipelineForText2Image | |
| import torch | |
| pipeline = AutoPipelineForText2Image.from_pretrained( | |
| "runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16, variant="fp16" | |
| ).to("cuda") | |
| image = pipeline( | |
| "stained glass of darth vader, backlight, centered composition, masterpiece, photorealistic, 8k" | |
| ).images[0] | |
| image |