MCPcopy Index your code
hub / github.com/tensorlayer/SRGAN / generator_train

Function generator_train

train.py:54–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53 # dataset API and augmentation
54 def generator_train():
55 for img in train_hr_imgs:
56 yield img
57 def _map_fn_train(img):
58 hr_patch = tf.image.random_crop(img, [384, 384, 3])
59 hr_patch = hr_patch / (255. / 2.)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected