/
Runefile.yml
63 lines (56 loc) · 1.22 KB
/
Runefile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
image: runicos/base
version: 1
pipeline:
content_image:
capability: IMAGE
outputs:
- type: u8
dimensions: [1, 384, 384, 3]
args:
source: 0
pixel-format: "@PixelFormat::RGB"
width: 384
height: 384
style:
capability: IMAGE
outputs:
- type: u8
dimensions: [1, 256, 256, 3]
args:
source: 1
pixel-format: "@PixelFormat::RGB"
width: 256
height: 256
normalized_content_image:
proc-block: "hotg-ai/proc-blocks@v0.11.3#image-normalization"
inputs:
- content_image
outputs:
- type: f32
dimensions: [1, 384, 384, 3]
normalized_style_image:
proc-block: "hotg-ai/proc-blocks@v0.11.3#image-normalization"
inputs:
- style
outputs:
- type: f32
dimensions: [1, 256, 256, 3]
style_vector:
model: ./style_predict.tflite
inputs:
- normalized_style_image
outputs:
- type: f32
dimensions: [1, 1, 1, 100]
style_transform:
model: ./style_transform.tflite
inputs:
- normalized_content_image
- style_vector
outputs:
- type: f32
dimensions: [1, 384, 384, 3]
serial:
out: SERIAL
inputs:
- style_transform