Jyothirmai commited on
Commit
795a44c
1 Parent(s): 75462dc

Update tester.py

Browse files
Files changed (1) hide show
  1. tester.py +4 -4
tester.py CHANGED
@@ -81,12 +81,12 @@ class CaptionSampler(object):
81
  self.sentence_model.eval()
82
  self.word_model.eval()
83
 
84
- # imageData = image_file.convert('RGB')
85
- # imageData = self.transform(imageData)
86
- # imageData = imageData.unsqueeze_(0)
87
 
88
 
89
- image = self.__to_var(image_file, requires_grad=False)
90
 
91
  visual_features, avg_features = self.extractor.forward(image)
92
 
 
81
  self.sentence_model.eval()
82
  self.word_model.eval()
83
 
84
+ imageData = image_file.convert('RGB')
85
+ imageData = self.transform(imageData)
86
+ imageData = imageData.unsqueeze_(0)
87
 
88
 
89
+ image = self.__to_var(imageData, requires_grad=False)
90
 
91
  visual_features, avg_features = self.extractor.forward(image)
92