Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Any plan about data augmentation #42

Closed
zhiqwang opened this issue Jun 3, 2020 · 1 comment
Closed

Any plan about data augmentation #42

zhiqwang opened this issue Jun 3, 2020 · 1 comment
Labels
question Further information is requested

Comments

@zhiqwang
Copy link
Contributor

zhiqwang commented Jun 3, 2020

❓ Is there any plan about data augmentation

Hi, DETR teams,

According to the implementation in ultralytics/yolov3#310 (comment), and a similar are discussed in AlexeyAB/darknet#3114 (comment). It seems that such augmentation such as the mosaic techniques is helpful to detect smaller size object. I quote Jocher's conclusions below.

The smaller cars are detected earlier with less blinking and cars of all sizes show better behaved bounding boxes.

I check make_coco_transforms of this repo, and visualized the augmented images and labels in
VOC dataset (use the same config of make_coco_transforms here). Since the utilization of RandomSizeCrop, all the labels associated to an image may be cropped. (So this repo supports training with no targets in an image? 🤔️)

I want to know whether is there some plan about data augmentation.

Thank you!

@fmassa
Copy link
Contributor

fmassa commented Jun 3, 2020

Hi,

The current implementation supports a number of data augmentations, including random resizing and random crops.

If I understand it correctly, the mozaic data augmentation that you pointed out is very similar (if not equivalent) to doing random resize on each image. Indeed, in the same mini-batch, we can have images of different resolutions, and it can be customized, so that a very large image could be in the same minibatch as a very small image.

Since the utilization of RandomSizeCrop, all the labels associated to an image may be cropped. (So this repo supports training with no targets in an image? 🤔️)

Yes, that's correct, we support feeding training images without any annotations (which generally happens with random crops).

I believe I've answered your questions, and as such I'm closing the issue, but let us know if you have further questions.

@fmassa fmassa closed this as completed Jun 3, 2020
@fmassa fmassa added the question Further information is requested label Jun 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants