Vvaann commited on
Commit
59ac305
·
verified ·
1 Parent(s): 8f49a5b

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
  print(outputs)
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]]
 
43
  outputs = model(input_img)
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]]