comparison transformations/add_background_image.py @ 69:6d87c0df2b0e

Forgot a close in add_background_image
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Tue, 09 Feb 2010 22:17:37 -0500
parents ee6a788557b6
children be24db3a4d6e
comparison
equal deleted inserted replaced
68:ee6a788557b6 69:6d87c0df2b0e
17 self.w = 32 17 self.w = 32
18 self.threshold = threshold; 18 self.threshold = threshold;
19 self.bg_image_file = '/data/lisa/data/ift6266h10/image_net/filelist.pkl' 19 self.bg_image_file = '/data/lisa/data/ift6266h10/image_net/filelist.pkl'
20 f=open(self.bg_image_file) 20 f=open(self.bg_image_file)
21 self.image_files = cPickle.load(f) 21 self.image_files = cPickle.load(f)
22 f.close()
22 23
23 # get threshold value 24 # get threshold value
24 def get_settings_names(self): 25 def get_settings_names(self):
25 return [str(self.threshold)] 26 return [str(self.threshold)]
26 27