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

Function get_test_set

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

Source from the content-addressed store, hash-verified

61
62
63def get_test_set(upscale_factor):
64 root_dir = download_bsd300()
65 test_dir = join(root_dir, "test")
66 crop_size = calculate_valid_crop_size(256, upscale_factor)
67
68 return DatasetFromFolder(test_dir,
69 input_transform=input_transform(crop_size, upscale_factor),
70 target_transform=target_transform(crop_size))

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