Closed eeric closed 7 years ago
nb_images
parameter to specify how many images you wish to use as training data.Training data include 256x256 upscaled images and 256x256 original undistorted images, doesn't it? Training data hasn't label, is it?
No there are no labels.
Training data include 256x256 upscaled images, not 256x256 original undistorted images, doesn't it?
It includes the upscaled image as training data (X) and then computes the VGG loss through the original images (Y)
In model.py, for training full network, that is SRGAN network, step is following,
1st ---> To pretrain the SR network: srgan_network = SRGANNetwork(img_width=32, img_height=32, batch_size=1) srgan_network.pre_train_srgan(iamges_path, nb_epochs=1, nb_images=50000)
2nd ---> To pretrain the Discriminator network: srgan_network = SRGANNetwork(img_width=32, img_height=32, batch_size=1) srgan_network.pre_train_discriminator(iamges_path, nb_epochs=1, nb_images=50000)
3rd ---> To train the full network (Does NOT work properly right now, Discriminator is not correctly trained): srgan_network = SRGANNetwork(img_width=32, img_height=32, batch_size=1) srgan_network.train_full_model(coco_path, nb_images=80000, nb_epochs=10)
Is it so?
On 1st step, what images does iamges_path folder include? On 2nd step, what images does iamges_path folder include? On 3rd step, what images does coco_path folder include?
All three are trained by the same MS COCO dataset. The MSCOCO dataset contains 80k images. So we use 50k random images from that to pretrain the SRGAN and discriminator. Then we train the full SRGAN + Discriminator model in the 3rd step with several iterations over MS COCO 80k dataset.
1.Training Details and Parameters is as the paper: Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network, is it?
2.the bicubic kernel is for bicubic interpolation when making the training data, does it?