How to use from the
Use from the
Diffusers library
# Gated model: Login with a HF token with gated access permission
hf auth login
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("fengleafs/sd-class-butterflies-sample-32-demo3", dtype=torch.bfloat16, device_map="cuda")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

--license: mit tags:

  • pytorch - diffusers
  • unconditional-image-generation
  • diffusion-models-class --# 这个模型用于生成蝴蝶图像的无条件图像生成扩散模型

'''python from diffusers import DDPMPipeline
pipeline = DDPMPipeline.from_pretrained('fengleafs/sd-class-butterflies-sample-32-demo3') image = pipeline().images[0] image '''

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support