f27993c9ecae9cc8d714baa86cb595ed393c1a35,main.py,,get_train_utils,#Any#Any#,95
Before Change
crop_method = [Resize(opt.sample_size), CenterCrop(opt.sample_size)]
normalize = get_normalize_method(opt.mean, opt.std, opt.no_mean_norm,
opt.no_std_norm)
spatial_transform = Compose(crop_method + [
RandomHorizontalFlip(),
ToTensor(),
ScaleValue(opt.value_scale), normalize
])
assert opt.train_t_crop in ["random", "center"]
if opt.train_t_crop == "random":
temporal_transform = TemporalRandomCrop(opt.sample_duration)
After Change
spatial_transform.append(ToTensor())
spatial_transform.append(ScaleValue(opt.value_scale))
spatial_transform.append(normalize)
spatial_transform = Compose(spatial_transform)
assert opt.train_t_crop in ["random", "center"]
if opt.train_t_crop == "random":
temporal_transform = TemporalRandomCrop(opt.sample_duration)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: f27993c9ecae9cc8d714baa86cb595ed393c1a35
Time: 2018-11-30
Author: kensho.hara@aist.go.jp
File Name: main.py
Class Name:
Method Name: get_train_utils
Project Name: open-mmlab/mmdetection
Commit Name: 49b3f37d682a5918c153a54e5921d6475993926e
Time: 2020-08-24
Author: tianyuandu@gmail.com
File Name: mmdet/apis/inference.py
Class Name:
Method Name: inference_detector
Project Name: open-mmlab/mmdetection
Commit Name: 49b3f37d682a5918c153a54e5921d6475993926e
Time: 2020-08-24
Author: tianyuandu@gmail.com
File Name: mmdet/apis/inference.py
Class Name:
Method Name: async_inference_detector