Pranav

Projects

I wrote a generator that labels its own detection data.

Training a detector needs many labeled images, and drawing boxes by hand is slow. ODDGen places cut-out objects on backgrounds and writes each bounding box as it places the object.

Stack
Python, PyTorch
Status
Public repository
Year
2023

How it works

A background remover (U²-Net or ISNet) cuts each object out of its photo, and a training script is included for a custom remover. The objects are placed on background images, and every placement writes its annotation in the same step.

One generated training image
Film

Cut out. A background remover, U²-Net or ISNet, cuts the object out of its photo.

Fig. 1A schematic of ODDGen’s pipeline, which generates in batches; its example uses ShapeNet objects.

How it scales

It generates in batches, so a dataset of tens of thousands of images is a matter of configuration. The repository’s example uses three ShapeNet objects: a phone, a ship and a plane.

Where it came from

Detection work like my waste-segregation paper depends on labeled images. ODDGen came after that paper, as a separate project.