Skip to content

Instantly share code, notes, and snippets.

@cedrickchee
Forked from binga/pascal_pandas.ipynb
Last active May 30, 2018 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cedrickchee/10e61334aee8fefe3dbad93406d39efb to your computer and use it in GitHub Desktop.
Save cedrickchee/10e61334aee8fefe3dbad93406d39efb 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.

This gist was being mentioned by Jeremy in fast.ai deep learning part 2 2018, lesson 9 video. In this lesson, we are learning multi-class object detection (computer vision) using the pascal-multi.ipynb notebook.

One of the fast.ai's students pointed out that by using Pandas, we can do things much simpler than using Python collections.defaultdict and shared this gist.

The more you get to know Pandas, the more often you realize it is a good way to solve lots of different problems.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment