logasja commited on
Commit
651f96b
·
verified ·
1 Parent(s): b0476f8

Save model using Keras.

Browse files
Files changed (5) hide show
  1. README.md +9 -98
  2. assets/summary_plot.png +2 -2
  3. config.json +0 -0
  4. metadata.json +1 -1
  5. model.weights.h5 +2 -2
README.md CHANGED
@@ -1,106 +1,17 @@
 
1
  ---
2
  library_name: keras
3
- metrics:
4
- - TopIQ-FR
5
- - ArcFace Cosine Distance
6
- datasets:
7
- - logasja/FDF
8
- widget:
9
- - text: input
10
- output:
11
- url: ./assets/input.png
12
- - text: target
13
- output:
14
- url: ./assets/target.png
15
- - text: output
16
- output:
17
- url: ./assets/output.png
18
- pipeline_tag: image-to-image
19
- base_model:
20
- - vnet
21
- - logasja/ArcFace
22
- tags:
23
- - adversarial
24
- - aesthetic
25
- - quality
26
- - filter
27
- license: gpl-3.0
28
  ---
29
- <Gallery />
30
-
31
- Training logs [here](https://wandb.ai/spuds/auramask/runs/412c2eae90c95bc547c30845c502c633)
32
 
33
- # Model Description
34
- This model uses a modified vnet for 2D input/output implemented [here](https://github.com/logasja/keras3-unets) with the following configuration.
35
 
36
- ```json
37
- {
38
- "activation": "ReLU",
39
- "batch_norm": false,
40
- "filter_num": [
41
- 64,
42
- 128,
43
- 256,
44
- 512,
45
- 512
46
- ],
47
- "n_labels": 3,
48
- "output_activation": "tanh",
49
- "pool": true,
50
- "res_num_ini": 1,
51
- "res_num_max": 3,
52
- "unpool": false
53
- }
54
- ```
55
 
56
- ```json
57
- {
58
- "alpha": 0.0001,
59
- "batch": 64,
60
- "epochs": 500,
61
- "epsilon": 1,
62
- "input": "(256, 256)",
63
- "losses": {
64
- "FEAT_ArcFace": {
65
- "d": "cosine_similarity",
66
- "f": "ArcFace",
67
- "name": "FEAT_ArcFace",
68
- "reduction": "sum_over_batch_size",
69
- "threshold": 0.68,
70
- "weight": 0.1
71
- },
72
- "TopIQ": {
73
- "full_ref": true,
74
- "lower_better": false,
75
- "name": "TopIQ",
76
- "reduction": "sum_over_batch_size",
77
- "score_range": "~0, ~1",
78
- "weight": 1
79
- }
80
- },
81
- "mixed_precision": true,
82
- "optimizer": {
83
- "amsgrad": false,
84
- "beta_1": 0.9,
85
- "beta_2": 0.999,
86
- "clipnorm": 1,
87
- "clipvalue": null,
88
- "ema_momentum": 0.99,
89
- "ema_overwrite_frequency": null,
90
- "epsilon": 1e-07,
91
- "global_clipnorm": null,
92
- "gradient_accumulation_steps": null,
93
- "learning_rate": 9.999999747378752e-05,
94
- "loss_scale_factor": null,
95
- "name": "adam",
96
- "use_ema": false,
97
- "weight_decay": null
98
- },
99
- "seed": "BIIIIIGSTRETCH",
100
- "testing": 0.01,
101
- "training": 0.99
102
- }
103
- ```
104
 
105
- ## Model Architecture Plot
106
  ![](./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: d496438b5712d1da3d883aa6922352fccb346d025f72d5d8be948055616eca01
  • Pointer size: 132 Bytes
  • Size of remote file: 2.27 MB

Git LFS Details

  • SHA256: 5a4c95c1df292b383f4ed561c4c8c3b1c370ea54afd4e0b23963270d37bf3e02
  • Pointer size: 131 Bytes
  • Size of remote file: 278 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-17@18:24:06"}
 
1
+ {"keras_version": "3.8.0", "date_saved": "2025-02-19@18:15:25"}
model.weights.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3031f6588450a8599d51d09f1eccd26aa0fe6bcd59cbb409db29650cd2c98562
3
- size 145801424
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56f2c23031c1a7c375eda209e42bf9d0fa7a33ea6eaad30286c0a4d8076a42e6
3
+ size 137106504