Alic22 commited on
Commit
dd2b8ab
·
verified ·
1 Parent(s): c5c6e19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -18,10 +18,9 @@ target_list = [
18
  'Hohlräume', 'Abplatzung', 'Graffiti', 'Verwitterung',
19
  'Restschalung', 'freiliegendeBewehrung', 'Lager', 'Entwässerung', 'Verfärbung'
20
  ]
21
- target_list_all = ["All"] + target_list
22
- classes, nclasses = target_list, len(target_list)
23
- label2id = dict(zip(classes, range(nclasses)))
24
- id2label = dict(zip(range(nclasses), classes))
25
 
26
 
27
  # SegModel
 
18
  'Hohlräume', 'Abplatzung', 'Graffiti', 'Verwitterung',
19
  'Restschalung', 'freiliegendeBewehrung', 'Lager', 'Entwässerung', 'Verfärbung'
20
  ]
21
+
22
+ label2id = {c: i for i, c in enumerate(target_list)}
23
+ id2label = {i: c for i, c in laberl2id.items()}
 
24
 
25
 
26
  # SegModel