workflows / configs /car_brands.json
SkalskiP's picture
initial commit
63a1180
{
"specification":{
"version":"1.0",
"inputs":[
{
"type":"InferenceImage",
"name":"image"
},
{
"type":"InferenceParameter",
"name":"car_types"
},
{
"type":"InferenceParameter",
"name":"detection_model",
"default_value":"coco/6"
}
],
"steps":[
{
"type":"ObjectDetectionModel",
"name":"detection",
"image":"$inputs.image",
"model_id":"$inputs.detection_model",
"iou_threshold":0.5,
"class_filter":[
"car",
"truck"
]
},
{
"type":"Crop",
"name":"cropping",
"image":"$inputs.image",
"detections":"$steps.detection.predictions"
},
{
"type":"ClipComparison",
"name":"clip",
"image":"$steps.cropping.crops",
"text":"$inputs.car_types"
}
],
"outputs":[
{
"type":"JsonField",
"name":"predictions",
"selector":"$steps.detection.predictions"
},
{
"type":"JsonField",
"name":"image",
"selector":"$steps.detection.image"
},
{
"type":"JsonField",
"name":"clip",
"selector":"$steps.clip.similarity"
},
{
"type":"JsonField",
"name":"crops",
"selector":"$steps.cropping.crops"
}
]
}
}