Downloads · 30 days
105
36% of all-time downloads
AventIQ-AI/ddpm-cifar10-32_unconditional_image_generation
ddpm-cifar10-32_unconditional_image_generation is a machine learning model from AventIQ-AI. 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.
This model is a fine-tuned Denoising Diffusion Probabilistic Model (DDPM) for generating images of flowers using the Oxford Flowers dataset. It builds upon the pretrained google/ddpm-cifar10-32 model and is optimized…
Downloads · 30 days
105
36% of all-time downloads
All-time downloads
292
Public
Parameters
35.7M
143 MB on disk
Likes
9
Trending 1
Click a slice to open those files.
.pt71.6 MB · 50%
From the Hugging Face model README
This model is a fine-tuned Denoising Diffusion Probabilistic Model (DDPM) for generating images of flowers using the Oxford Flowers dataset. It builds upon the pretrained google/ddpm-cifar10-32 model and is optimized for training on a GPU.
Architecture: UNet2DModel
Noise Scheduler: DDPMScheduler
Training Data: Oxford Flowers dataset (nelorth/oxford-flowers)
Optimizer: AdamW
Learning Rate: 1e-4, adjusted using a cosine scheduler
Training Steps: 100 epochs
Batch Size: 64
Image Size: 32x32 pixels
The training process involves the following steps:
Images resized to 32x32.
Random horizontal flipping applied for augmentation.
Normalized to the range [-1, 1].
Random noise added to images using a linear beta schedule.
The UNet model predicts the noise added to images.
The Mean Squared Error (MSE) loss is used.
The learning rate is adjusted with a cosine scheduler.
Model checkpoints are saved every 1000 steps.
Once trained, the model can be used for generating images of flowers. The trained model is saved as a DDPMPipeline and can be loaded for inference.
from optimum.intel.openvino import OVModelForImageGeneration
pipeline = OVModelForImageGeneration.from_pretrained("flower_diffusion_quantized", export=True)
images = pipeline(batch_size=4, num_inference_steps=50).images
images[0].show()
FP32 Version: Standard precision model.
FP16 Version: Reduced precision for lower memory usage.
Image Resolution: Trained at 32x32, which may limit the fine details.
Computational Requirements: A GPU is recommended for inference.
Dataset Bias: The model is trained solely on Oxford Flowers, so its generalization to other datasets is limited.
Quantized Model Accuracy: INT8 quantization may slightly reduce output quality but speeds up inference.