Instructions to use zthrx/painting_generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use zthrx/painting_generator with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("zthrx/painting_generator", 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
doesn't work with colab
#2
by sgarbidonna - opened
WHAT I HAVE:
import torch
from diffusers import DiffusionPipeline
pipe= DiffusionPipeline.from_pretrained("zthrx/painting_generator")
pipe = pipe.to("cuda")
prompt = "daguerrotype, old woman playing cards, by francis bacon"
h=800
w=640
steps=25
guidance=8
neg= ""
image = pipe(prompt, height=h, width=w, num_interference_steps= steps, guidance_scale=guidance, negative_prompt=neg).images[0]
image
THE PROBLEM:
HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/zthrx/painting_generator/resolve/main/model_index.json