jaimin commited on
Commit
9c604fb
·
1 Parent(s): 71868b5

Update label.py

Browse files
Files changed (1) hide show
  1. label.py +1 -1
label.py CHANGED
@@ -49,7 +49,7 @@ def load_labels():
49
  return classes, labels_IO, labels_attribute, W_attribute
50
 
51
  def hook_feature(module, input, output):
52
- features_blobs.append(np.squeeze(output.data.cpu().numpy()))
53
 
54
  def returnCAM(feature_conv, weight_softmax, class_idx):
55
  # generate the class activation maps upsample to 256x256
 
49
  return classes, labels_IO, labels_attribute, W_attribute
50
 
51
  def hook_feature(module, input, output):
52
+ return np.squeeze(output.data.cpu().numpy())
53
 
54
  def returnCAM(feature_conv, weight_softmax, class_idx):
55
  # generate the class activation maps upsample to 256x256