This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add augly transformation support (#442)
Summary: Pull Request resolved: #442 Add support for augly transformations. Similar to apex, I made augly install optional for users and didn't add it to requirements.txt -- let me know what you think about this. Reviewed By: prigoyal, QuentinDuval Differential Revision: D31462923 fbshipit-source-id: ce793f1adc432b3f1ea08acf4b3f66daa88215a8
- Loading branch information
1 parent
83d859f
commit dd9971a
Showing
6 changed files
with
134 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
configs/config/test/transforms/augly_transforms_example.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# @package _global_ | ||
config: | ||
DATA: | ||
TRAIN: | ||
TRANSFORMS: | ||
- name: ImgReplicatePil | ||
num_times: 2 | ||
- name: RandomResizedCrop | ||
size: 224 | ||
- name: RandomHorizontalFlip | ||
p: 0.5 | ||
- name: ImgPilColorDistortion | ||
strength: 1.0 | ||
- name: ImgPilGaussianBlur | ||
p: 0.5 | ||
radius_min: 0.1 | ||
radius_max: 2.0 | ||
- name: Blur | ||
transform_type: "augly" | ||
radius: 2.0 | ||
p: 1.0 | ||
- name: ToTensor | ||
- name: Normalize | ||
mean: [0.485, 0.456, 0.406] | ||
std: [0.229, 0.224, 0.225] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters