Vvaann commited on
Commit
09898e2
·
verified ·
1 Parent(s): 59ac305

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def inference(input_img, transparancy = 0.5, target_layer_number = -1):
44
  print(outputs)
45
  softmax = torch.nn.Softmax(dim=0)
46
  o = softmax(outputs.flatten())
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)
 
44
  print(outputs)
45
  softmax = torch.nn.Softmax(dim=0)
46
  o = softmax(outputs.flatten())
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)