Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added torchvision photometric augmentations in artefact detection training #764

Merged
merged 6 commits into from
Dec 29, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style: Minor fixes
  • Loading branch information
SiddhantBahuguna committed Dec 27, 2021
commit 43784f240e6f3fb4c6b800a8e99c50b5377c029e
2 changes: 1 addition & 1 deletion references/obj_detection/train_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def main(args):
img_transforms=Compose([
T.Resize((args.input_size, args.input_size)),
ColorJitter(brightness=0.3, contrast=0.3, saturation=0.3, hue=0.02),
T.RandomApply(GaussianBlur(kernel_size=(3, 3), sigma=(0.1, 3)), .3)
T.RandomApply(GaussianBlur(kernel_size=(3, 3), sigma=(0.1, 3)), .3),
]))

train_loader = DataLoader(
Expand Down