MCPcopy Create free account
hub / github.com/pytorch/examples / get_training_set

Function get_training_set

super_resolution/data.py:53–60  ·  view source on GitHub ↗
(upscale_factor)

Source from the content-addressed store, hash-verified

51
52
53def get_training_set(upscale_factor):
54 root_dir = download_bsd300()
55 train_dir = join(root_dir, "train")
56 crop_size = calculate_valid_crop_size(256, upscale_factor)
57
58 return DatasetFromFolder(train_dir,
59 input_transform=input_transform(crop_size, upscale_factor),
60 target_transform=target_transform(crop_size))
61
62
63def get_test_set(upscale_factor):

Callers 1

main.pyFile · 0.90

Calls 5

DatasetFromFolderClass · 0.90
download_bsd300Function · 0.85
input_transformFunction · 0.85
target_transformFunction · 0.85

Tested by

no test coverage detected