Downloads · 30 days
0
dminhk/stable-diffusion-xl-base-1.0-neuronx
stable-diffusion-xl-base-1.0-neuronx is a machine learning model from dminhk. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as openrail++.
Downloads · 30 days
0
Access
Public
Updated Sep 16, 2023
Repo size
7.6 GB
Likes
0
Public
Click a slice to open those files.
.neuron7.6 GB · 100%
From the Hugging Face model README
Amazon EC2 Inf2 Instances
How to use Diffusers library for inference
from optimum.neuron import NeuronStableDiffusionXLPipeline
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
stable_diffusion_xl = NeuronStableDiffusionXLPipeline.from_pretrained(
model_id="dminhk/stable-diffusion-xl-base-1.0-neuronx", device_ids=[0, 1]
)
image = stable_diffusion_xl(prompt).images[0]