diff --git a/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp16_config.json b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp16_config.json new file mode 100644 index 000000000..d919702d4 --- /dev/null +++ b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp16_config.json @@ -0,0 +1,76 @@ +{ + "export": { + "opset_version": 17, + "batch_size": 1, + "export_params": true, + "do_constant_folding": true, + "verbose": false, + "dynamo": true, + "enable_hierarchy_tags": true, + "clean_onnx": false, + "hierarchy_tag_format": "full", + "input_tensors": [ + { + "name": "pixel_values", + "dtype": "float32", + "shape": [1, 3, 512, 864], + "value_range": [0, 1] + } + ], + "output_tensors": [ + { + "name": "logits" + }, + { + "name": "pred_boxes" + } + ] + }, + "optim": {}, + "quant": { + "mode": "fp16", + "samples": 10, + "calibration_method": "minmax", + "weight_type": "uint8", + "activation_type": "uint8", + "per_channel": false, + "symmetric": false, + "weight_symmetric": null, + "activation_symmetric": null, + "save_calibration": false, + "distribution": "uniform", + "seed": null, + "calibration_load_path": null, + "calibration_save_path": null, + "op_types_to_quantize": null, + "nodes_to_exclude": null, + "fp16_keep_io_types": true, + "fp16_op_block_list": null + }, + "compile": null, + "loader": { + "task": "object-detection", + "model_class": "AutoModelForObjectDetection", + "model_type": "yolos" + }, + "eval": { + "task": "object-detection", + "dataset": { + "path": "detection-datasets/fashionpedia", + "revision": "80845435ce686b8a9dbf70a05452fbfb8e09cdd7", + "split": "val", + "samples": 10, + "shuffle": false, + "seed": 42, + "streaming": true, + "columns_mapping": { + "input_column": "image", + "annotation_column": "objects", + "bbox_key": "bbox", + "category_key": "category", + "box_format": "xywh", + "box_coords": "absolute" + } + } + } +} \ No newline at end of file diff --git a/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp32_config.json b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp32_config.json new file mode 100644 index 000000000..59b0243cb --- /dev/null +++ b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp32_config.json @@ -0,0 +1,57 @@ +{ + "export": { + "opset_version": 17, + "batch_size": 1, + "export_params": true, + "do_constant_folding": true, + "verbose": false, + "dynamo": true, + "enable_hierarchy_tags": true, + "clean_onnx": false, + "hierarchy_tag_format": "full", + "input_tensors": [ + { + "name": "pixel_values", + "dtype": "float32", + "shape": [1, 3, 512, 864], + "value_range": [0, 1] + } + ], + "output_tensors": [ + { + "name": "logits" + }, + { + "name": "pred_boxes" + } + ] + }, + "optim": {}, + "quant": null, + "compile": null, + "loader": { + "task": "object-detection", + "model_class": "AutoModelForObjectDetection", + "model_type": "yolos" + }, + "eval": { + "task": "object-detection", + "dataset": { + "path": "detection-datasets/fashionpedia", + "revision": "80845435ce686b8a9dbf70a05452fbfb8e09cdd7", + "split": "val", + "samples": 10, + "shuffle": false, + "seed": 42, + "streaming": true, + "columns_mapping": { + "input_column": "image", + "annotation_column": "objects", + "bbox_key": "bbox", + "category_key": "category", + "box_format": "xywh", + "box_coords": "absolute" + } + } + } +} \ No newline at end of file