Skip to content

Commit 0dca06c

Browse files
committed
Add ssdlite presets.
1 parent ea46bfc commit 0dca06c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

references/detection/presets.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ def __init__(self, data_augmentation, hflip_prob=0.5, mean=(123., 117., 104.)):
1616
T.RandomHorizontalFlip(p=hflip_prob),
1717
T.ToTensor(),
1818
])
19+
elif data_augmentation == 'ssdlite':
20+
self.transforms = T.Compose([
21+
T.RandomIoUCrop(),
22+
T.RandomHorizontalFlip(p=hflip_prob),
23+
T.ToTensor(),
24+
])
1925
else:
2026
raise ValueError(f'Unknown data augmentation policy "{data_augmentation}"')
2127

0 commit comments

Comments
 (0)