Views
No views yet
PyTorchModelHubMixin.| Property | Description |
|---|---|
| Architecture | Conditional UNet with residual and skip connections |
| Conditioning | Class embedding (10 Fashion-MNIST labels) + timestep embedding |
| Framework | PyTorch |
| Pipeline | text-to-image (adapted for diffusion) |
| License | MIT |
| Author | Sherwin Roger |
1from huggingface_hub import hf_hub_download
2import sys
3import importlib.util
4
5model_file = hf_hub_download(
6 repo_id="Sherwinroger002/fashion_mnist_diffusion_class_conditional",
7 filename="modeling.py"
8)
9
10spec = importlib.util.spec_from_file_location("modeling", model_file)
11modeling = importlib.util.module_from_spec(spec)
12sys.modules["modeling"] = modeling
13spec.loader.exec_module(modeling)
14
15model = modeling.EmbUnetModel.from_pretrained(
16 "Sherwinroger002/fashion_mnist_diffusion_class_conditional"
17)
18
19image = modeling.generate("Sneaker", model)
20modeling.show_image(image)
@software{fashion_mnist_diffusion_2025,
author = {Sherwin Roger},
title = {Fashion-MNIST Diffusion (Class-Conditional UNet)},
year = {2025},
url = {https://huggingface.co/Sherwinroger002/fashion_mnist_diffusion_class_conditional}
}