nickmuchi commited on
Commit
81b65a6
·
1 Parent(s): 4742314

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def visualize_prediction(img, output_dict, threshold=0.5, id2label=None):
46
  scores = output_dict["scores"][keep].tolist()
47
  labels = output_dict["labels"][keep].tolist()
48
  if id2label is not None:
49
- labels = [id2label[x] for x in labels if x == "Rego_Plates"]
50
 
51
  plt.figure(figsize=(50, 50))
52
  plt.imshow(img)
 
46
  scores = output_dict["scores"][keep].tolist()
47
  labels = output_dict["labels"][keep].tolist()
48
  if id2label is not None:
49
+ labels = [id2label[x] for x in labels if id2label[x] == "Rego_Plates"]
50
 
51
  plt.figure(figsize=(50, 50))
52
  plt.imshow(img)