4992ababa1741fbdf4b19137994cc180df6b6834,dataset.py,,get_training_data,#Any#Any#Any#Any#Any#Any#Any#Any#,8
Before Change
if file_type == "jpg":
assert input_type == "rgb", "flow input is supported only when input type is hdf5."
loader = VideoLoader(lambda x: f"image_{x:05d}.jpg")
video_path_formatter = (
lambda root_path, label, video_id: root_path / label / video_id)
else:
if input_type == "rgb":
After Change
if file_type == "jpg":
assert input_type == "rgb", "flow input is supported only when input type is hdf5."
if get_image_backend() == "accimage":
from datasets.loader import ImageLoaderAccImage
loader = VideoLoader(image_name_formatter, ImageLoaderAccImage())
else:
loader = VideoLoader(image_name_formatter)
video_path_formatter = (
lambda root_path, label, video_id: root_path / label / video_id)
else:
if input_type == "rgb":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: 4992ababa1741fbdf4b19137994cc180df6b6834
Time: 2020-04-06
Author: kensho.hara@aist.go.jp
File Name: dataset.py
Class Name:
Method Name: get_training_data
Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: 4992ababa1741fbdf4b19137994cc180df6b6834
Time: 2020-04-06
Author: kensho.hara@aist.go.jp
File Name: dataset.py
Class Name:
Method Name: get_validation_data
Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: 4992ababa1741fbdf4b19137994cc180df6b6834
Time: 2020-04-06
Author: kensho.hara@aist.go.jp
File Name: dataset.py
Class Name:
Method Name: get_inference_data