Upload folder using huggingface_hub
Browse files- .gitattributes +3 -0
- README.md +70 -3
- celeba_with_diff.png +3 -0
- cifar10_with_diff.png +3 -0
- mnist_with_diff.png +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
celeba_with_diff.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
cifar10_with_diff.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
mnist_with_diff.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,70 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: cc-by-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-sa-4.0
|
| 3 |
+
tags:
|
| 4 |
+
- flow-matching
|
| 5 |
+
- generative-model
|
| 6 |
+
- image-generation
|
| 7 |
+
- pytorch
|
| 8 |
+
datasets:
|
| 9 |
+
- mnist
|
| 10 |
+
- cifar10
|
| 11 |
+
- celeba
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# UNet Flow Matching Models
|
| 15 |
+
|
| 16 |
+
Pre-trained UNet models for Flow Matching on image generation tasks.
|
| 17 |
+
|
| 18 |
+
## Models
|
| 19 |
+
|
| 20 |
+
This repository contains three trained UNet Flow Matching models:
|
| 21 |
+
|
| 22 |
+
### MNIST (28×28 Grayscale)
|
| 23 |
+
- **Checkpoint**: `mnist/ckpt.pth`
|
| 24 |
+
- **Parameters**: 6.2M
|
| 25 |
+
- **Configuration**: num_channels=64, num_res_blocks=2, class_cond=True
|
| 26 |
+
- **Training**: 10 epochs
|
| 27 |
+
|
| 28 |
+
### CIFAR-10 (32×32 RGB)
|
| 29 |
+
- **Checkpoint**: `cifar10/ckpt.pth`
|
| 30 |
+
- **Parameters**: 9.0M
|
| 31 |
+
- **Configuration**: num_channels=64, num_res_blocks=2, class_cond=True
|
| 32 |
+
- **Training**: 20 epochs
|
| 33 |
+
|
| 34 |
+
### CelebA (64×64 RGB)
|
| 35 |
+
- **Checkpoint**: `celeba64/ckpt.pth`
|
| 36 |
+
- **Parameters**: 83.0M
|
| 37 |
+
- **Configuration**: num_channels=128, num_res_blocks=2, class_cond=False
|
| 38 |
+
- **Training**: 50 epochs, final loss=0.114
|
| 39 |
+
|
| 40 |
+
## Sample Results
|
| 41 |
+
|
| 42 |
+
### MNIST
|
| 43 |
+

|
| 44 |
+
|
| 45 |
+
### CIFAR-10
|
| 46 |
+

|
| 47 |
+
|
| 48 |
+
### CelebA 64×64
|
| 49 |
+

|
| 50 |
+
|
| 51 |
+
## Usage
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
import torch
|
| 55 |
+
from huggingface_hub import hf_hub_download
|
| 56 |
+
|
| 57 |
+
# Download checkpoint
|
| 58 |
+
ckpt_path = hf_hub_download(
|
| 59 |
+
repo_id="WayBob/FlowMatching-Unet-Celeb-64x64",
|
| 60 |
+
filename="celeba64/ckpt.pth"
|
| 61 |
+
)
|
| 62 |
+
|
| 63 |
+
# Load model (requires the UNet implementation)
|
| 64 |
+
checkpoint = torch.load(ckpt_path, map_location="cuda")
|
| 65 |
+
# ... load into your UNet model
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
## License
|
| 69 |
+
|
| 70 |
+
CC BY-NC-SA 4.0
|
celeba_with_diff.png
ADDED
|
Git LFS Details
|
cifar10_with_diff.png
ADDED
|
Git LFS Details
|
mnist_with_diff.png
ADDED
|
Git LFS Details
|