Spaces:
Runtime error
Runtime error
Update label.py
Browse files
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 |
-
|
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
|