Sample Pipeline Configs
keras-open-images-cuda.json
CODE
{
"model": {
"input": {
"shapes": [[1, 224, 224, 3]]
},
"inference_context": "cuda"
},
"flows": [{
"name": "baseline",
"steps": [{
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}, {
"compile": {
"target": "cuda"
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "lorenz",
"steps": [{
"optimize": {
"compress": {
"data_type": "uint8",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt",
"use_legacy_quantizer": true
},
"compile": {
"target": "cuda"
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "turing",
"steps": [{
"optimize": {
"compress": {
"data_type": "uint8",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt"
},
"compile": {
"target": "cuda"
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}]
keras-open-images.json
JSON
{
"model": {
"input": {
"shapes": [[1, 224, 224, 3]]
}
},
"flows": [{
"name": "baseline",
"steps": [{
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}, {
"compile": {
"crc_check": true
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "lorenz-asymmetric",
"steps": [{
"optimize": {
"compress": {
"quantizer": "asymmetric",
"data_type": "uint8",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt",
"use_legacy_quantizer": true
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "lorenz-symmetric",
"steps": [{
"optimize": {
"compress": {
"quantizer": "symmetric",
"data_type": "int8",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt",
"use_legacy_quantizer": true
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "lorenz-symmetricpc",
"steps": [{
"optimize": {
"compress": {
"quantizer": "symmetricpc",
"data_type": "int8",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt",
"use_legacy_quantizer": true
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "turing-asymmetric",
"steps": [{
"optimize": {
"compress": {
"quantizer": "asymmetric",
"data_type": "uint8",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt"
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "turing-symmetric",
"steps": [{
"optimize": {
"compress": {
"quantizer": "symmetric",
"data_type": "int8",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt"
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "turing-symmetricpc",
"steps": [{
"optimize": {
"compress": {
"quantizer": "symmetricpc",
"data_type": "int8",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt"
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}]
}
torch-open-images-cuda.json
JSON
{
"model": {
"input": {
"shapes": [[1, 3, 224, 224]]
},
"inference_context": "cuda"
},
"flows": [{
"name": "baseline",
"steps": [{
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}, {
"compile": {
"target": "cuda"
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "lorenz-like",
"steps": [{
"optimize": {
"compress": {
"data_type": "int8",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt",
"use_legacy_quantizer": true
},
"compile": {
"target": "cuda"
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "turing",
"steps": [{
"optimize": {
"compress": {
"data_type": "uint8",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt"
},
"compile": {
"target": "cuda"
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}]
}
torch-open-images.json
JSON
{
"model": {
"input": {
"shapes": [[1, 3, 224, 224]]
}
},
"flows": [{
"name": "baseline",
"steps": [{
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}, {
"compile": {
"crc_check": true
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "lorenz-like-asymmetric",
"steps": [{
"optimize": {
"compress": {
"data_type": "int8",
"quantizer": "asymmetric",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt",
"use_legacy_quantizer": true
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "lorenz-like-symmetric",
"steps": [{
"optimize": {
"compress": {
"data_type": "int8",
"quantizer": "symmetric",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt",
"use_legacy_quantizer": true
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "lorenz-like-symmetricpc",
"steps": [{
"optimize": {
"compress": {
"data_type": "int8",
"quantizer": "symmetricpc",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt",
"use_legacy_quantizer": true
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "turing-asymmetric",
"steps": [{
"optimize": {
"compress": {
"data_type": "uint8",
"quantizer": "asymmetric",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt"
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "turing-symmetric",
"steps": [{
"optimize": {
"compress": {
"data_type": "int8",
"quantizer": "symmetric",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt"
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}, {
"name": "turing-symmetricpc",
"steps": [{
"optimize": {
"compress": {
"data_type": "int8",
"quantizer": "symmetricpc",
"rep_dataset": "workspace/datasets/open-images-10-classes/eval/rep_dataset.txt"
},
"compile": {
"crc_check": true
}
}
}, {
"evaluate": {
"test_path": "workspace/datasets/open-images-10-classes/eval/index.txt",
"class_names": "workspace/datasets/open-images-10-classes/eval/class_names.txt"
}
}]
}]
}