Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Random crops enabled? #70

Open
vadimkantorov opened this issue Jan 25, 2022 · 2 comments
Open

Random crops enabled? #70

vadimkantorov opened this issue Jan 25, 2022 · 2 comments

Comments

@vadimkantorov
Copy link

Hi @ycliu93!

Are random crops enabled as part of augmentation pipeline?

In other words, is cfg.INPUT.CROP.ENABLED set to True at

if cfg.INPUT.CROP.ENABLED and is_train:
?

Right now it seems to me that it's disabled by default in detectron2 standard config and is not enabled anywhere else in unbiased-teacher

Thank you!

@ycliu93
Copy link
Contributor

ycliu93 commented Feb 7, 2022

We didn't do randomly crop a patch from the whole image and use the cropped patch as input of the model.

Random cropping described in the paper is actually randomly masking patches in an image.

Setting cfg.INPUT.CROP.ENABLED to True might improve the performance but I didn't try before.

@vadimkantorov
Copy link
Author

I see, so in fact RandomErasing is meant? Is it enabled? If yes, what are the hyper-params? Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants