mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 09:16:36 +00:00
GPU augmentation. try2
This commit is contained in:
@@ -62,8 +62,8 @@ class DataLoader:
|
|||||||
aug_image = fn.random_resized_crop(
|
aug_image = fn.random_resized_crop(
|
||||||
images,
|
images,
|
||||||
device='gpu',
|
device='gpu',
|
||||||
min_scale=0.8,
|
size=(images.shape[1], images.shape[2]),
|
||||||
max_scale=1.0
|
random_area=(0.8, 1.0)
|
||||||
)
|
)
|
||||||
|
|
||||||
# Apply multiple random augmentations
|
# Apply multiple random augmentations
|
||||||
|
|||||||
Reference in New Issue
Block a user