Vvaann commited on
Commit
b2b5bff
·
verified ·
1 Parent(s): d31170d

Update app.py

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