logasja commited on
Commit
86feee9
·
verified ·
1 Parent(s): 4a0ccb3

Save model using Keras.

Browse files
Files changed (5) hide show
  1. README.md +9 -114
  2. assets/summary_plot.png +2 -2
  3. config.json +0 -0
  4. metadata.json +1 -1
  5. model.weights.h5 +1 -1
README.md CHANGED
@@ -1,122 +1,17 @@
 
1
  ---
2
  library_name: keras
3
- license: gpl-3.0
4
- datasets:
5
- - logasja/FDF
6
- pipeline_tag: image-to-image
7
- widget:
8
- - text: input
9
- output:
10
- url: ./assets/input.png
11
- - text: target
12
- output:
13
- url: ./assets/target.png
14
- - text: output
15
- output:
16
- url: ./assets/output.png
17
- base_model:
18
- - vnet
19
- - logasja/ArcFace
20
- - logasja/VGGFace2
21
- metrics:
22
- - TopIQ-FR
23
- - ArcFace Cosine Distance
24
- - VGGFace2 Cosine Distance
25
- tags:
26
- - adversarial
27
- - aesthetic
28
- - quality
29
- - filter
30
  ---
31
- <Gallery />
32
-
33
- Training logs [here](https://wandb.ai/spuds/auramask/runs/95e53b958929dc62e2db048d3f302cfe)
34
 
35
- # Model Description
36
- This model uses a modified vnet for 2D input/output implemented [here](https://github.com/logasja/keras3-unets) with the following configuration.
37
 
38
- ```json
39
- {
40
- "activation": "ReLU",
41
- "batch_norm": false,
42
- "filter_num": [
43
- 128,
44
- 256,
45
- 512,
46
- 1024,
47
- 1024
48
- ],
49
- "n_labels": 3,
50
- "output_activation": "tanh",
51
- "pool": false,
52
- "res_num_ini": 1,
53
- "res_num_max": 3,
54
- "unpool": false
55
- }
56
- ```
57
 
58
- ```json
59
- {
60
- "alpha": 0.0001,
61
- "batch": 32,
62
- "epochs": 500,
63
- "epsilon": 1,
64
- "input": "(256, 256)",
65
- "losses": {
66
- "FEAT_ArcFace": {
67
- "d": "cosine_similarity",
68
- "f": "ArcFace",
69
- "name": "FEAT_ArcFace",
70
- "reduction": "sum_over_batch_size",
71
- "threshold": 0.68,
72
- "weight": 0.05
73
- },
74
- "FEAT_VGG-Face": {
75
- "d": "cosine_similarity",
76
- "f": "VGG-Face",
77
- "name": "FEAT_VGG-Face",
78
- "reduction": "sum_over_batch_size",
79
- "threshold": 0.68,
80
- "weight": 0.05
81
- },
82
- "IQASSIMC": {
83
- "lower_better": false,
84
- "name": "IQASSIMC",
85
- "reduction": "sum_over_batch_size",
86
- "weight": 0.5
87
- },
88
- "TopIQ": {
89
- "full_ref": true,
90
- "lower_better": false,
91
- "name": "TopIQ",
92
- "reduction": "sum_over_batch_size",
93
- "score_range": "~0, ~1",
94
- "weight": 0.5
95
- }
96
- },
97
- "mixed_precision": true,
98
- "optimizer": {
99
- "amsgrad": false,
100
- "beta_1": 0.9,
101
- "beta_2": 0.999,
102
- "clipnorm": null,
103
- "clipvalue": null,
104
- "ema_momentum": 0.99,
105
- "ema_overwrite_frequency": null,
106
- "epsilon": 1e-07,
107
- "global_clipnorm": null,
108
- "gradient_accumulation_steps": null,
109
- "learning_rate": 9.999999747378752e-05,
110
- "loss_scale_factor": null,
111
- "name": "adamw",
112
- "use_ema": false,
113
- "weight_decay": 0.004
114
- },
115
- "seed": "BIIIIIGSTRETCH",
116
- "testing": 0.01,
117
- "training": 0.99
118
- }
119
- ```
120
 
121
- ## Model Architecture Plot
122
  ![](./assets/summary_plot.png)
 
1
+
2
  ---
3
  library_name: keras
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  ---
 
 
 
5
 
6
+ This model has been uploaded using the Keras library and can be used with JAX,
7
+ TensorFlow, and PyTorch backends.
8
 
9
+ This model card has been generated automatically and should be completed by the
10
+ model author.
11
+ See [Model Cards documentation](https://huggingface.co/docs/hub/model-cards) for
12
+ more information.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
+ For more details about the model architecture, check out
15
+ [config.json](./config.json).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
 
17
  ![](./assets/summary_plot.png)
assets/summary_plot.png CHANGED

Git LFS Details

  • SHA256: 3db91632fde2acc7800d85ce5c5a0b7bb6935d27050e4101de77efa82a010398
  • Pointer size: 132 Bytes
  • Size of remote file: 2.18 MB

Git LFS Details

  • SHA256: 01587af0fe71beece8dd726b2e5ac2b1a32f0678bbb641af608bab662e5b83fc
  • Pointer size: 131 Bytes
  • Size of remote file: 277 kB
config.json CHANGED
The diff for this file is too large to render. See raw diff
 
metadata.json CHANGED
@@ -1 +1 @@
1
- {"keras_version": "3.8.0", "date_saved": "2025-02-27@18:58:14"}
 
1
+ {"keras_version": "3.8.0", "date_saved": "2025-03-03@12:50:12"}
model.weights.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1491e9dbcac73cbbed430659e583e65015c916ffcebf29be5ceb8f3b410a66a5
3
  size 547716936
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f91ba63aed922ab5e0690b677f7e960d58f806526d7a7b4c78ae52965170840
3
  size 547716936