Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: keras
|
3 |
+
---
|
4 |
+
|
5 |
+
VQ-GAN model trained on the Kimetsu no Yaiba dataset on Tensorflow.
|
6 |
+
|
7 |
+
The parameters used for training are the following:
|
8 |
+
|
9 |
+
```yaml
|
10 |
+
model:
|
11 |
+
vqvae_config:
|
12 |
+
beta: 0.25
|
13 |
+
num_embeddings: 50257
|
14 |
+
embedding_dim: 128
|
15 |
+
autoencoder_config:
|
16 |
+
z_channels: 512
|
17 |
+
channels: 32
|
18 |
+
channels_multiplier:
|
19 |
+
- 2
|
20 |
+
- 4
|
21 |
+
- 8
|
22 |
+
- 8
|
23 |
+
num_res_blocks: 1
|
24 |
+
attention_resolution:
|
25 |
+
- 16
|
26 |
+
resolution: 128
|
27 |
+
dropout: 0.0
|
28 |
+
discriminator_config:
|
29 |
+
num_layers: 3
|
30 |
+
filters: 64
|
31 |
+
|
32 |
+
loss_config:
|
33 |
+
discriminator:
|
34 |
+
loss: "hinge"
|
35 |
+
factor: 1.0
|
36 |
+
iter_start: 50000000
|
37 |
+
weight: 0.8
|
38 |
+
vqvae:
|
39 |
+
codebook_weight: 1.0
|
40 |
+
perceptual_weight: 4.0
|
41 |
+
perceptual_loss: "vgg19" # "vgg16", "vgg19", "style"
|
42 |
+
|
43 |
+
trainer:
|
44 |
+
batch_size: 64
|
45 |
+
n_epochs: 10000
|
46 |
+
gen_lr: 3e-5
|
47 |
+
disc_lr: 5e-5
|
48 |
+
gen_beta_1: 0.5
|
49 |
+
gen_beta_2: 0.9
|
50 |
+
disc_beta_1: 0.5
|
51 |
+
disc_beta_2: 0.9
|
52 |
+
gen_clip_norm: 1.0
|
53 |
+
disc_clip_norm: 1.0
|
54 |
+
```
|
55 |
+
|
56 |
+
Implementation and documentation can be found [here](https://github.com/Kurokabe/GANime)
|