Phitran21 commited on
Commit
d699666
·
verified ·
1 Parent(s): 4d6332d

Upload 4 files

Browse files
adapter_photo_model.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93a65ce93f037c549e5f30fbcabc2bf259be40c8785335f661ecb660506d109d
3
+ size 5554379
adaptive_photo_mobile_int8_qdq.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebfd37c2e672e06782be31b80f4eec73f3a4772bcae5d435c208cb297d82a95d
3
+ size 6640886
model_meta.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "AdaptivePhotoNet",
3
+ "param_count": 5876943,
4
+ "image_input": {
5
+ "name": "image",
6
+ "shape": [
7
+ 1,
8
+ 3,
9
+ 224,
10
+ 224
11
+ ],
12
+ "dtype": "float32",
13
+ "range": [
14
+ 0.0,
15
+ 1.0
16
+ ],
17
+ "layout": "NCHW",
18
+ "color": "RGB"
19
+ },
20
+ "style_input": {
21
+ "name": "style_id",
22
+ "shape": [
23
+ 1
24
+ ],
25
+ "dtype": "int64",
26
+ "mapping": {
27
+ "natural": 0,
28
+ "vivid": 1,
29
+ "cinema": 2,
30
+ "portrait": 3,
31
+ "film": 4,
32
+ "moody": 5
33
+ }
34
+ },
35
+ "outputs": {
36
+ "recipe_vector": [
37
+ 1,
38
+ 21
39
+ ],
40
+ "scene_probs": [
41
+ 1,
42
+ 10
43
+ ]
44
+ },
45
+ "scene_tags": {
46
+ "human": 0,
47
+ "face_visible": 1,
48
+ "skin_visible": 2,
49
+ "portrait": 3,
50
+ "indoor": 4,
51
+ "outdoor": 5,
52
+ "night": 6,
53
+ "low_light": 7,
54
+ "backlit": 8,
55
+ "high_dynamic_range": 9
56
+ },
57
+ "recipe_schema_file": "recipe_schema.json",
58
+ "recommended_android": {
59
+ "fp32": "XNNPACKExecutionProvider -> CPUExecutionProvider fallback",
60
+ "int8": "CPUExecutionProvider first"
61
+ }
62
+ }
recipe_schema.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "recipe_dim": 21,
3
+ "linear_dims_0_to_16": [
4
+ "exposure_ev",
5
+ "temperature",
6
+ "tint",
7
+ "shadows",
8
+ "highlights",
9
+ "contrast",
10
+ "tone_curve_0",
11
+ "tone_curve_1",
12
+ "tone_curve_2",
13
+ "tone_curve_3",
14
+ "tone_curve_4",
15
+ "shadow_tone_strength",
16
+ "highlight_tone_strength",
17
+ "saturation",
18
+ "vibrance",
19
+ "fade",
20
+ "vignette"
21
+ ],
22
+ "linear_specs": {
23
+ "exposure_ev": {
24
+ "min": -2.0,
25
+ "max": 2.0
26
+ },
27
+ "temperature": {
28
+ "min": -1.0,
29
+ "max": 1.0
30
+ },
31
+ "tint": {
32
+ "min": -1.0,
33
+ "max": 1.0
34
+ },
35
+ "shadows": {
36
+ "min": -1.0,
37
+ "max": 1.0
38
+ },
39
+ "highlights": {
40
+ "min": -1.0,
41
+ "max": 1.0
42
+ },
43
+ "contrast": {
44
+ "min": -1.0,
45
+ "max": 1.0
46
+ },
47
+ "tone_curve_0": {
48
+ "min": 0.0,
49
+ "max": 1.0
50
+ },
51
+ "tone_curve_1": {
52
+ "min": 0.0,
53
+ "max": 1.0
54
+ },
55
+ "tone_curve_2": {
56
+ "min": 0.0,
57
+ "max": 1.0
58
+ },
59
+ "tone_curve_3": {
60
+ "min": 0.0,
61
+ "max": 1.0
62
+ },
63
+ "tone_curve_4": {
64
+ "min": 0.0,
65
+ "max": 1.0
66
+ },
67
+ "shadow_tone_strength": {
68
+ "min": 0.0,
69
+ "max": 0.3
70
+ },
71
+ "highlight_tone_strength": {
72
+ "min": 0.0,
73
+ "max": 0.3
74
+ },
75
+ "saturation": {
76
+ "min": -1.0,
77
+ "max": 1.0
78
+ },
79
+ "vibrance": {
80
+ "min": -1.0,
81
+ "max": 1.0
82
+ },
83
+ "fade": {
84
+ "min": 0.0,
85
+ "max": 1.0
86
+ },
87
+ "vignette": {
88
+ "min": 0.0,
89
+ "max": 1.0
90
+ }
91
+ },
92
+ "hue_dims": {
93
+ "17_18": "shadow_tone_hue -> [sin, cos]",
94
+ "19_20": "highlight_tone_hue -> [sin, cos]"
95
+ },
96
+ "styles": {
97
+ "natural": 0,
98
+ "vivid": 1,
99
+ "cinema": 2,
100
+ "portrait": 3,
101
+ "film": 4,
102
+ "moody": 5
103
+ },
104
+ "scene_tags": {
105
+ "human": 0,
106
+ "face_visible": 1,
107
+ "skin_visible": 2,
108
+ "portrait": 3,
109
+ "indoor": 4,
110
+ "outdoor": 5,
111
+ "night": 6,
112
+ "low_light": 7,
113
+ "backlit": 8,
114
+ "high_dynamic_range": 9
115
+ }
116
+ }