Instructions to use cyberdelia/CyberRealisticPony with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use cyberdelia/CyberRealisticPony with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("cyberdelia/CyberRealisticPony", 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
- Draw Things
- DiffusionBee
Update Script
#1
by minefarts - opened
This model works so well for me that I made this python script to automatically download the latest version. I thought I should share it in case anyone else wants to use it.
#----------------------------------------------------------
# CONFIGURATION:
output = 'image.safetensors' # Path for model to download to
temp_dir = 'C:/temp' # Path for temporary files
token = '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' # huggingface.co api token
#----------------------------------------------------------
from urllib.request import urlretrieve
from huggingface_hub import HfFileSystem, login
from pathlib import Path
print("Logging in to 'huggingface.co'")
login(token)
print('Scanning files in repository')
files = []
for file in HfFileSystem().ls("cyberdelia/CyberRealisticPony"):
if file['name'].startswith('cyberdelia/CyberRealisticPony/CyberRealisticPony_V'):
files.append(file['name'].split('/')[-1])
url = f'https://huggingface.co/cyberdelia/CyberRealisticPony/resolve/main/{sorted(files)[-1]}?download=true'
print(f'Downloading model to "{Path(output).absolute().as_posix()}"')
urlretrieve(url, output)
print('Download Complete')