File size: 2,539 Bytes
92142d8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
vre:
  start_frame: ${oc.env:VRE_START_IX}
  end_frame: ${oc.env:VRE_END_IX,null}
  export_npy: True
  export_png: True
  exception_mode: skip_representation

representations:
  rgb:
    type: default
    name: rgb
    dependencies: []
    parameters: {}

  hsv:
    type: default
    name: hsv
    dependencies: []
    parameters: {}

  halftone1:
    type: soft-segmentation
    name: python-halftone
    dependencies: []
    parameters:
      sample: 3
      scale: 1
      percentage: 91
      angles: [0, 15, 30, 45]
      antialias: False
      resolution: [240, 426]

  edges_canny:
    type: edges
    name: canny
    dependencies: []
    parameters:
      threshold1: 100
      threshold2: 200
      aperture_size: 3
      l2_gradient: True

  softseg_kmeans:
    type: soft-segmentation
    name: kmeans
    dependencies: []
    parameters:
      n_clusters: 6
      epsilon: 2
      max_iterations: 10
      attempts: 3

  softseg_gb:
    type: soft-segmentation
    name: generalized_boundaries
    dependencies: []
    parameters:
      use_median_filtering: True
      adjust_to_rgb: True
      max_channels: 3

  edges_dexined:
    type: edges
    name: dexined
    dependencies: []
    parameters: {} 
    batch_size: 15
    vre_parameters:
      device: ${oc.env:VRE_DEVICE,cpu}

  fastsam(s):
    type: semantic_segmentation
    name: fastsam
    dependencies: []
    parameters:
      variant: fastsam-s
      iou: 0.9
      conf: 0.4
    vre_parameters:
      device: ${oc.env:VRE_DEVICE,cpu}

  depth_dpt:
    type: depth
    name: dpt
    dependencies: []
    parameters: {}
    batch_size: 10
    vre_parameters:
      device: ${oc.env:VRE_DEVICE,cpu}

  semantic_mask2former_swin_coco:
    type: semantic_segmentation
    name: mask2former
    dependencies: []
    batch_size: 1
    parameters:
      model_id: "47429163_0"
      semantic_argmax_only: True
    vre_parameters:
      device: ${oc.env:VRE_DEVICE,cpu}

  semantic_mask2former_swin_mapilary:
    type: semantic_segmentation
    name: mask2former
    dependencies: []
    batch_size: 1
    parameters:
      model_id: "49189528_0"
      semantic_argmax_only: True
    vre_parameters:
      device: ${oc.env:VRE_DEVICE,cpu}

  # only works if fps is also set (for images) via --frame_rate in cli. For videos, it works just fine.
  opticalflow_rife:
    type: optical-flow
    name: rife
    dependencies: []
    batch_size: 15
    parameters:
      uhd: False
      compute_backward_flow: False
    vre_parameters:
      device: ${oc.env:VRE_DEVICE,cpu}