pytorch-SRDenseNet icon indicating copy to clipboard operation
pytorch-SRDenseNet copied to clipboard

How to get the best model for evaluating in another test set?

Open chenqi008 opened this issue 6 years ago • 4 comments

Hi,

I just want to know how to get the best model from the checkpoint models. Because I have trained a series of checkpoints and use the last one checkpoint models (model_epoch_60.pth) to evaluate in the Set5 dataset. However, I can not achieve the performance as shown in this code.

Thank you very much!

chenqi008 avatar May 04 '18 07:05 chenqi008

Hi @chenqi008, I used the default settings in my code. What kind of dataset did you applied for training? Also, could you show me the performance of the model you trained? There is lots of randomness for training a model.

twtygqyy avatar May 04 '18 14:05 twtygqyy

Hi @twtygqyy, I used 10k images randomly selected from the imagenet dataset to train this model. I also use the default settings in this code. But it can only achieve about 30 in Set5. Are the iterations of training not enough?

chenqi008 avatar May 05 '18 07:05 chenqi008

Hi @chenqi008, normally I used the last check point, there might be some variations among the check points before you finish the training, but only slightly difference. About the performance, did you use the dataset generation code in the repo? In my experiment, 30,000 images with data augmentations including flipping, rotation, downsizing are adopted for training. I guess this leads to the performance gap.

twtygqyy avatar May 05 '18 16:05 twtygqyy

Hi @twtygqyy, thanks a lot. I get a promising result when I increase the learning epochs in training.

chenqi008 avatar May 07 '18 08:05 chenqi008