Upload folder using huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- score-matching
|
| 5 |
+
- anime
|
| 6 |
+
- image-generation
|
| 7 |
+
- pytorch
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Anime Face Score Matching Model
|
| 11 |
+
|
| 12 |
+
A score-based generative model trained to generate 64x64 anime-style faces using Denoising Score Matching.
|
| 13 |
+
|
| 14 |
+
## Model Details
|
| 15 |
+
|
| 16 |
+
- **Model type**: NCSN / Score Matching
|
| 17 |
+
- **Training data**: Anime faces dataset
|
| 18 |
+
- **Image size**: 64x64 RGB
|
| 19 |
+
- **Sigma**: 0.15
|
| 20 |
+
- **Architecture**: Improved U-Net
|
| 21 |
+
|
| 22 |
+
## Usage
|
| 23 |
+
|
| 24 |
+
```python
|
| 25 |
+
import torch
|
| 26 |
+
# Load your model class definitions here
|
| 27 |
+
|
| 28 |
+
# Load the model
|
| 29 |
+
checkpoint = torch.load("model.pt")
|
| 30 |
+
model = ImprovedScoreNetwork(in_channels=3)
|
| 31 |
+
model.load_state_dict(checkpoint['ema_model_state_dict']) # Use EMA weights
|
| 32 |
+
model.eval()
|
| 33 |
+
|
| 34 |
+
# Generate samples using Langevin Dynamics
|
| 35 |
+
# (See sample_langevin function in training code)
|
| 36 |
+
```
|
model.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b004348a9cdb428ace23434d058a62c035e042286d90d328a11c97502165b09e
|
| 3 |
+
size 214420075
|