()
| 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.) |
nothing calls this directly
no outgoing calls
no test coverage detected