mmaction2 icon indicating copy to clipboard operation
mmaction2 copied to clipboard

[PR Welcome] More data augmentation methods

Open irvingzhang0512 opened this issue 3 years ago • 10 comments

Describe the feature More data augmentation methods.

Motivation When training our own models, we need to TRY EVERYTHING...

Additional context

  • MMaction2 existing data augmentation methods:
    • random flip.
    • all kinds of crop and resize
    • color jitter(brightness/contrast/saturation/hue)

Plans

More image augmentation methods could refer to PaddleClas.

irvingzhang0512 avatar Dec 12 '20 13:12 irvingzhang0512

Thanks for the enthusiastic! Here is a practical way:

  1. Make a list of candidate augmentations. For each augmentation, find its original paper, together with a reference implementation.
  2. Make individual pull requests for each one of the list.

You may use this issue to track progress.

innerlee avatar Dec 13 '20 12:12 innerlee

Yeah, Thanks for your proposal. It is better to provide a list of candidate augmentations so that we can also help to implement some of these ! @irvingzhang0512

dreamerlin avatar Dec 13 '20 13:12 dreamerlin

this paper shows that random rotation may help image

irvingzhang0512 avatar Dec 17 '20 01:12 irvingzhang0512

In image classification, rotation works to some extent. But color jittering sometimes does not work.

Whether they work or not, it does not affect whether we implement them.

edit: @dreamerlin had some code on color jittering

innerlee avatar Dec 17 '20 01:12 innerlee

Supporting rotation would be great.

I also wanted to have some camera transformations, such as

  • push in
  • pull out
  • pan
  • tilt

Do you have interest in implementing them?

innerlee avatar Dec 17 '20 01:12 innerlee

Supporting rotation would be great.

I also wanted to have some camera transformations, such as

  • push in
  • pull out
  • pan
  • tilt

Do you have interest in implementing them?

@innerlee I'm a little busy until Jan. 20th. If no one implemente these then, I'll have a try. Before that, I'll implement tsm-mobilenet and support imgaug/albumentation in pipeline.

irvingzhang0512 avatar Dec 17 '20 02:12 irvingzhang0512

No hurry.

There is also lots of movie transition fx that can do some fancy temporal "mixup"

image

innerlee avatar Dec 17 '20 02:12 innerlee

Find an interesting paper here. This paper proposes a video augmentation strategy called VideoMix.

irvingzhang0512 avatar Jan 27 '21 06:01 irvingzhang0512

haha

innerlee avatar Jan 27 '21 06:01 innerlee

PytorchVideo transform random_resized_crop support shift mode, which looks like the movie transforms. Maybe we can support this. @innerlee @dreamerlin

irvingzhang0512 avatar Jul 10 '21 08:07 irvingzhang0512