merge
Crops Merge App.
API REFERENCE
crops_merge(ground_truth_file, output_file, predictions_file=None, apply_nms=True, score_thr=0.0, iou_thr=0.5)
Merge and translate ground_truth_file
or predictions
to ground_truth
's old_images
coordinates.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ground_truth_file |
str
|
Path to COCO ground truth file of crops. Generated with
|
required |
output_file |
str
|
Path where the merged annotations will be saved. |
required |
predictions_file |
Optional[str]
|
Path to COCO predictions file over |
None
|
apply_nms |
bool
|
Whether to apply Non Maximum Supression to the merged predictions of each image. Defaults to True. |
True
|
score_thr |
float
|
Predictions bellow |
0.0
|
iou_thr |
float
|
None of the filtered predictions will have an iou above |
0.5
|
Source code in pyodi/apps/crops/crops_merge.py
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 |
|