cd8217b051fab48c4155dc20ad58d6cf7f6fc3a2,evaluate.py,,main,#Any#,19

Before Change



	for filename in test_filenames:
		mse = model.do_super_resolution_for_evaluate(filename, output_folder=FLAGS.output_dir, output=FLAGS.save_results)
		total_mse += mse
		total_psnr += util.get_psnr(mse)

	logging.info("\n=== Average [%s] MSE:%f, PSNR:%f ===" % (
		FLAGS.test_dataset, total_mse / len(test_filenames), total_psnr / len(test_filenames)))


if __name__ == "__main__":

After Change


	for i in range(FLAGS.tests):
		model.load_model(FLAGS.load_model_name, i, True if FLAGS.tests > 1 else False)
		for test_data in test_list:
			test(model, test_data)


def test(model, test_data):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: jiny2001/dcscn-super-resolution
Commit Name: cd8217b051fab48c4155dc20ad58d6cf7f6fc3a2
Time: 2017-07-07
Author: jin.us2@ponkotsu.jp
File Name: evaluate.py
Class Name:
Method Name: main


Project Name: hunkim/PyTorchZeroToAll
Commit Name: c4610ff26a01a0622bc11dcac0f0812f05c56e0c
Time: 2017-11-02
Author: hunkim@gmail.com
File Name: 12_4_name_classify.py
Class Name:
Method Name:


Project Name: jiny2001/dcscn-super-resolution
Commit Name: 11630ab1e51124079549a99e0c2e06c8c43ce928
Time: 2017-07-06
Author: jin.us2@ponkotsu.jp
File Name: evaluate.py
Class Name:
Method Name: main