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

Before Change


	model.build_summary_saver()
	model.init_all_variables(load_model_name=FLAGS.load_model_name)

	total_psnr = total_mse = 0

	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: 4

Non-data size: 5

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: 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


Project Name: masa-su/pixyz
Commit Name: bea3a486261d3f6238316224605b684db1e5bca7
Time: 2018-10-16
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/models/vi.py
Class Name: VI
Method Name: test


Project Name: masa-su/pixyz
Commit Name: bea3a486261d3f6238316224605b684db1e5bca7
Time: 2018-10-16
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/models/vae.py
Class Name: VAE
Method Name: test