Skip to content

Instantly share code, notes, and snippets.

@binga
Last active April 22, 2020 21:45
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save binga/1bc4ebe5e41f670f5954d2ffa9d6c0ed to your computer and use it in GitHub Desktop.
Save binga/1bc4ebe5e41f670f5954d2ffa9d6c0ed to your computer and use it in GitHub Desktop.
A quick way to get the bounding boxes in fastai csv format ready for bounding box regression using Pandas.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gsgbills
Copy link

gsgbills commented May 6, 2018

Very good, but also

  1. Need to remove the "ignore == 1" rows,
    largest_box = largest_box[largest_box.ignore != 1]
  2. eliminate duplicates, ie 2 equal size largest boxes:
    largest_bbox.drop_duplicates(subset='file_name', inplace=True)

@fromLittleAcorns
Copy link

Nice work, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment