Skip to content

data augmentation #142

Open
Open
@CHN-001

Description

@CHN-001

Hello author, I would like to use online data augmentation in BCNet now. I see that the image size can be randomly processed in the cfg file,So I want to add some other enhancements, such as the ones shown below,

T.RandomBrightness(0.9, 1.1) and T.RandomFlip(prob=0.5)

and I'm not sure how to add them. Should I modify the datamapper.py file? Or should I add some code to my train.py file? I'm looking forward to your reply and i will be grateful if u can help me! Please forgive my poor English.

These are some related works that I found, and i hope these can help us.
https://stackoverflow.com/questions/71774744/how-to-use-detectron2s-augmentation-with-datasets-loaded-using-register-coco-in/71799464#71799464
https://github.com/facebookresearch/detectron2/issues/1578

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions