Vvaann commited on
Commit
b8cbc9e
·
verified ·
1 Parent(s): b40381b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def inference(input_img, transparancy = 0.5, target_layer_number = -1):
45
  softmax = torch.nn.Softmax(dim=0)
46
  o = softmax(outputs.flattern())
47
  confidences = {classes[i]:float(o[i] for i in range(10))}
48
- - , prediction= torch.max(outputs, 1)
49
  target_layers = [model.layer2[target_layer_number]]
50
  cam = GradCAM(model=model, target_layers=target_layers)
51
  grayscale_cam = cam(input_tensor= input_img,target=None)
 
45
  softmax = torch.nn.Softmax(dim=0)
46
  o = softmax(outputs.flattern())
47
  confidences = {classes[i]:float(o[i] for i in range(10))}
48
+ prediction= torch.max(outputs, 1)
49
  target_layers = [model.layer2[target_layer_number]]
50
  cam = GradCAM(model=model, target_layers=target_layers)
51
  grayscale_cam = cam(input_tensor= input_img,target=None)