Downloads · 30 days
0
ahn1376/bikefusion
bikefusion is a machine learning model from ahn1376. 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 mit.
This model has been trained to generate bike images. The dataset used is BIKED++ (found here in GitHub)
Downloads · 30 days
0
Access
Public
Updated Nov 15, 2024
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.pt678 MB · 51%
From the Hugging Face model README
This model has been trained to generate bike images. The dataset used is BIKED++ (found here in GitHub)
This is a conditional diffusion model which is trained to both generate bike images and perform infill on partially masked bike images from the dataset above.
the baseline architecture was setup with diffusers UNet2DModel model for images:
UNet2DModel(
sample_size=128, # the target image resolution is set to 128 here (128x128 images)
in_channels=6, # the number of input channels, 3 for RGB masked images(infill, feed all white for uncoditional) and 3 for RGB noise
out_channels=3, # the number of output channels (RGB)
layers_per_block=2,
block_out_channels=(128, 256, 512, 768),
down_block_types=(
"DownBlock2D",
"AttnDownBlock2D",
"AttnDownBlock2D",
"AttnDownBlock2D"
),
up_block_types=(
"AttnUpBlock2D",
"AttnUpBlock2D",
"AttnUpBlock2D",
"UpBlock2D"
),
)
The code for training and inference is included as well. There exists a postprocessing function which crops the white space above and below the bike images which the dataset was preprocessed to have such that the images become square shaped.
With only 10 denoising steps you can get uncoditional samples that mimic the dataset well.

A pipeline with guidance is provided as well where you can feed your custom function for guidance.