Downloads · 30 days
68
25% of all-time downloads
uisikdag/ddpm-butterflies-128-old
ddpm-butterflies-128-old is a machine learning model from uisikdag. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers.
Downloads · 30 days
68
25% of all-time downloads
All-time downloads
267
Public
Parameters
114M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin455 MB · 49%
From the Hugging Face model README
copy/paste/save as inference.py
from diffusers import DiffusionPipeline
import argparse
# Parse command line arguments
parser = argparse.ArgumentParser(description='Generate an image using a Hugging Face diffusion model')
parser.add_argument('--model', type=str, default="uisikdag/ddpm-few-shot-art-painting",
help='Hugging Face model name/path')
parser.add_argument('--steps', type=int, default=500,
help='Number of inference steps')
args = parser.parse_args()
# Load the model
generator = DiffusionPipeline.from_pretrained(args.model).to("cuda")
# Generate image
image = generator(num_inference_steps=args.steps).images[0]
# Save the image with model name in the filename
output_filename = f"output_{args.model.split('/')[-1]}.png"
image.save(output_filename)
print(f"Image saved as {output_filename}")
python inference.py --model="uisikdag/ddpm-butterflies-128-old" --steps 1000