2067cb7429ffd95efc3d9ace255b234831615d39,robosat/tools/train.py,,get_dataset_loaders,#Any#Any#,189
Before Change
image_transform = Compose(
[
ConvertImageMode("RGB"),
Resize(target_size, Image.BILINEAR),
CenterCrop(target_size),
ImageToTensor(),
Normalize(mean=mean, std=std),
After Change
mean, std = dataset["stats"]["mean"], dataset["stats"]["std"]
transform = JointCompose(
[
JointTransform(ConvertImageMode("RGB"), ConvertImageMode("P")),
JointTransform(Resize(target_size, Image.BILINEAR), Resize(target_size, Image.NEAREST)),
JointTransform(CenterCrop(target_size), CenterCrop(target_size)),
JointRandomVerticalFlip(0.5),
JointRandomHorizontalFlip(0.5),
JointRandomRotation(0.5, 90),
JointRandomRotation(0.5, 180),
JointRandomRotation(0.5, 270),
JointTransform(ImageToTensor(), MaskToTensor()),
JointTransform(Normalize(mean=mean, std=std), None),
]
)
train_dataset = SlippyMapTilesConcatenation(
[os.path.join(path, "training", "images")], os.path.join(path, "training", "labels"), transform
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: mapbox/robosat
Commit Name: 2067cb7429ffd95efc3d9ace255b234831615d39
Time: 2018-06-28
Author: daniel@trvx.org
File Name: robosat/tools/train.py
Class Name:
Method Name: get_dataset_loaders
Project Name: richzhang/colorization-pytorch
Commit Name: 81d6155030e5f58ce3bd1781dc939fd56d6eed01
Time: 2018-08-24
Author: rzhang88@gmail.com
File Name: train.py
Class Name:
Method Name:
Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: 3bdd430adce3bb4b345eb46348685345fbcb8ce6
Time: 2019-07-05
Author: kensho.hara@aist.go.jp
File Name: main.py
Class Name:
Method Name: get_test_utils
Project Name: NVlabs/MUNIT
Commit Name: 1466a009b7bc989cbc3f9c6e6734e506132bf680
Time: 2018-04-30
Author: mingyu.liu.tw@gmail.com
File Name: utils.py
Class Name:
Method Name: get_data_loader_folder
Project Name: NVlabs/MUNIT
Commit Name: 1466a009b7bc989cbc3f9c6e6734e506132bf680
Time: 2018-04-30
Author: mingyu.liu.tw@gmail.com
File Name: utils.py
Class Name:
Method Name: get_data_loader_list
Project Name: KaiyangZhou/deep-person-reid
Commit Name: bac2ce56624fdee04f3e45f5af2b41f13e17adbf
Time: 2019-02-03
Author: k.zhou@qmul.ac.uk
File Name: torchreid/transforms.py
Class Name:
Method Name: build_transforms