Closed dxq77dxq closed 3 years ago
First of all: Good that this will finally be implemented. :-) Nevertheless I don't understand why you haven't simply merged my PR as it had more functionality (allowing to drob bboxes outside of the image) and also included a test-case...
Second: Not sure about your experience, but I usually have label data in csv-files where each line describes a bbox. The _create_object_detection_table_noxml-function is much more useful to my mind.
Third: I would recommend to have a separate check_bbox-function which can be called by both _create_object_detectiontable-functions.
First of all: Good that this will finally be implemented. :-) Nevertheless I don't understand why you haven't simply merged my PR as it had more functionality (allowing to drob bboxes outside of the image) and also included a test-case...
Second: Not sure about your experience, but I usually have label data in csv-files where each line describes a bbox. The _create_object_detection_table_noxml-function is much more useful to my mind.
Third: I would recommend to have a separate check_bbox-function which can be called by both _create_object_detectiontable-functions.
Thanks for the initial implementation on this new feature. While your code gave more flexibility on ways to drop bounding boxes, there are several potential issues:
Thank you again for contributing to DLPy. Please let me know if you have some other suggestions.
- That’s only due too bad documentation. Both functions are still undocumented in read the docs.
- Agree, even though yolo is the most used. Would be best to have all.
- Not really sure whether you understood the idea behind it. It was meant to drop bounding boxes which are partly outside the image and therefore don’t contain the object anymore. Say you want to detect a person but only it’s feet are in the Image.
- I haven’t seen any requests for changes.
My apologies if I didn't fully understand your idea. To my knowledge, we adjust the actual dimensions of bounding boxes when you resize the original images, so if there exists a bounding box, the the values are valid unless you crop the images. It's not easy to determine if the box contains most part of the person or just a foot based on x_min or y_min. This part of work should be done when you create the bounding boxes using annotation tools.
Added three more options: check_bbox, min_bbox_width and min_bbox_height to help filter bounding boxes. If the width or height is lower than threshold, the corresponding bounding box won't be included in the data.