()
| 65 | return segmented_image |
| 66 | |
| 67 | def createPxielLabels(): |
| 68 | label_json = { |
| 69 | "0": "unclassified", |
| 70 | "1": "clutter", |
| 71 | "2": "building", |
| 72 | "3": "road", |
| 73 | "4": "static_car", |
| 74 | "5": "tree", |
| 75 | "6": "vegetation", |
| 76 | "7": "human", |
| 77 | "8": "moving_car" |
| 78 | } |
| 79 | return label_json |
| 80 | |
| 81 | def segmentImages(images_path, output_path, onnx_file, labels_file, sigmoid_threshold=0.8): |
| 82 | # check if the onnx network exists |