You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,8 @@ Possible arguments of the ```visualize_results``` function:
172
172
| random_object_colors | bool | False | If true, colors for each object are selected randomly. |
173
173
| show_confidences | bool | False | If true and show_class=True, confidences near class are visualized. |
174
174
| axis_off | bool | True | If true, axis is turned off in the final visualization. |
175
-
| show_classes_list | list |[]| If empty, visualize all classes. Otherwise, visualize only classes in the list. |
175
+
| show_classes_list | list |[]| If empty, visualize all classes. Otherwise, visualize only classes in the list. |
176
+
| list_of_class_colors | list | None | A list of tuples representing the colors for each class in BGR format. If provided, these colors will be used for displaying the classes instead of random colors. |
176
177
| return_image_array | bool | False | If True, the function returns the image (BGR np.array) instead of displaying it. |
Copy file name to clipboardExpand all lines: patched_yolo_infer/README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,12 @@ The library also provides a sleek customization of the visualization of the infe
7
7
**Model Support**: The library offers support for multiple ultralytics deep learning [models](https://docs.ultralytics.com/models/), such as YOLOv8, YOLOv8-seg, YOLOv9, YOLOv9-seg, YOLOv10, FastSAM, and RTDETR. Users can select from pre-trained options or utilize custom-trained models to best meet their task requirements.
8
8
9
9
10
+
__Explanation of how Patch-Based-Inference works:__
@@ -141,6 +147,7 @@ Visualizes custom results of object detection or segmentation on an image.
141
147
-**show_confidences** (*bool*): If true and show_class=True, confidences near class are visualized. Default is False.
142
148
-**axis_off** (*bool*): If true, axis is turned off in the final visualization. Default is True.
143
149
-**show_classes_list** (*list*): If empty, visualize all classes. Otherwise, visualize only classes in the list.
150
+
-**list_of_class_colors** (*list*) A list of tuples representing the colors for each class in BGR format. If provided, these colors will be used for displaying the classes instead of random colors.
144
151
-**return_image_array** (*bool*): If True, the function returns the image (BGR np.array) instead of displaying it. Default is False.
0 commit comments