khulnasoft commited on
Commit
287e861
1 Parent(s): 596eaf7

Create configs/car_brands.json

Browse files
Files changed (1) hide show
  1. configs/car_brands.json +67 -0
configs/car_brands.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "specification":{
3
+ "version":"1.0",
4
+ "inputs":[
5
+ {
6
+ "type":"InferenceImage",
7
+ "name":"image"
8
+ },
9
+ {
10
+ "type":"InferenceParameter",
11
+ "name":"car_types"
12
+ },
13
+ {
14
+ "type":"InferenceParameter",
15
+ "name":"detection_model",
16
+ "default_value":"coco/6"
17
+ }
18
+ ],
19
+ "steps":[
20
+ {
21
+ "type":"ObjectDetectionModel",
22
+ "name":"detection",
23
+ "image":"$inputs.image",
24
+ "model_id":"$inputs.detection_model",
25
+ "iou_threshold":0.5,
26
+ "class_filter":[
27
+ "car",
28
+ "truck"
29
+ ]
30
+ },
31
+ {
32
+ "type":"Crop",
33
+ "name":"cropping",
34
+ "image":"$inputs.image",
35
+ "detections":"$steps.detection.predictions"
36
+ },
37
+ {
38
+ "type":"ClipComparison",
39
+ "name":"clip",
40
+ "image":"$steps.cropping.crops",
41
+ "text":"$inputs.car_types"
42
+ }
43
+ ],
44
+ "outputs":[
45
+ {
46
+ "type":"JsonField",
47
+ "name":"predictions",
48
+ "selector":"$steps.detection.predictions"
49
+ },
50
+ {
51
+ "type":"JsonField",
52
+ "name":"image",
53
+ "selector":"$steps.detection.image"
54
+ },
55
+ {
56
+ "type":"JsonField",
57
+ "name":"clip",
58
+ "selector":"$steps.clip.similarity"
59
+ },
60
+ {
61
+ "type":"JsonField",
62
+ "name":"crops",
63
+ "selector":"$steps.cropping.crops"
64
+ }
65
+ ]
66
+ }
67
+ }