2021-10-28 16:21:23 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- encoding: utf-8 -*-
|
|
|
|
|
|
|
|
train_data = dict(
|
|
|
|
dataset=dict(
|
2023-09-19 06:20:26 +00:00
|
|
|
type="CIFAR10Dataset",
|
|
|
|
root="/path/to/data",
|
2021-10-28 16:21:23 +00:00
|
|
|
download=True,
|
|
|
|
transform_pipeline=[
|
2023-09-19 06:20:26 +00:00
|
|
|
dict(type="RandomResizedCrop", size=224),
|
|
|
|
dict(type="RandomHorizontalFlip"),
|
|
|
|
dict(type="ToTensor"),
|
|
|
|
dict(type="Normalize", mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5)),
|
|
|
|
],
|
2021-10-28 16:21:23 +00:00
|
|
|
),
|
|
|
|
dataloader=dict(
|
|
|
|
batch_size=64,
|
|
|
|
pin_memory=True,
|
|
|
|
num_workers=4,
|
|
|
|
sampler=dict(
|
2023-09-19 06:20:26 +00:00
|
|
|
type="DataParallelSampler",
|
2021-10-28 16:21:23 +00:00
|
|
|
shuffle=True,
|
2023-09-19 06:20:26 +00:00
|
|
|
),
|
|
|
|
),
|
2021-10-28 16:21:23 +00:00
|
|
|
)
|