Downloads · 30 days
0
VGreatVig07/color_polygon_unet
color_polygon_unet is a machine learning model from VGreatVig07. 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 is a conditional U-Net trained to generate filled polygon images based on both shape and color. It takes two inputs: - A binary polygon mask image (e.g., a triangle, star, etc.) - A color condition (e.g., r…
Downloads · 30 days
0
Access
Public
Updated Aug 7, 2025
Repo size
124 MB
Likes
0
Public
Click a slice to open those files.
.pth124 MB · 100%
From the Hugging Face model README
This model is a conditional U-Net trained to generate filled polygon images based on both shape and color. It takes two inputs:
It outputs a colorized version of the shape according to the given color prompt.
color_polygon_unet.pth: Trained PyTorch model weightsfrom huggingface_hub import hf_hub_download
import torch
# Download the model file
model_path = hf_hub_download(
repo_id="your-username/color-polygon-unet-model",
filename="color_polygon_unet.pth"
)
# Load the model (assuming you have the UNet class defined)
model = UNet(in_channels=6, out_channels=3)
model.load_state_dict(torch.load(model_path, map_location='cpu'))
model.eval()
This model is designed for:
MIT License
Vighnesh M S