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

Function target_transform

super_resolution/data.py:46–50  ·  view source on GitHub ↗
(crop_size)

Source from the content-addressed store, hash-verified

44
45
46def target_transform(crop_size):
47 return Compose([
48 CenterCrop(crop_size),
49 ToTensor(),
50 ])
51
52
53def get_training_set(upscale_factor):

Callers 2

get_training_setFunction · 0.85
get_test_setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected