LeeRuben commited on
Commit
b7d59ec
·
1 Parent(s): dcefea0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -0
app.py CHANGED
@@ -17,6 +17,40 @@ model = TFSegformerForSemanticSegmentation.from_pretrained(
17
  def ade_palette():
18
  """ADE20K palette that maps each class to RGB values."""
19
  return [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  [255, 0, 0],
21
  [0, 255, 0],
22
  [0, 0, 255],
 
17
  def ade_palette():
18
  """ADE20K palette that maps each class to RGB values."""
19
  return [
20
+ [255, 0, 0],
21
+ [0, 255, 0],
22
+ [0, 0, 255],
23
+ [255, 255, 0],
24
+ [255, 0, 255],
25
+ [0, 255, 255],
26
+ [128, 0, 0],
27
+ [0, 128, 0],
28
+ [0, 0, 128],
29
+ [128, 128, 0],
30
+ [128, 0, 128],
31
+ [0, 128, 128],
32
+ [192, 192, 192],
33
+ [128, 128, 128],
34
+ [255, 128, 0],
35
+ [128, 255, 0],
36
+ [128, 0, 255],
37
+ [255, 0, 0],
38
+ [0, 255, 0],
39
+ [0, 0, 255],
40
+ [255, 255, 0],
41
+ [255, 0, 255],
42
+ [0, 255, 255],
43
+ [128, 0, 0],
44
+ [0, 128, 0],
45
+ [0, 0, 128],
46
+ [128, 128, 0],
47
+ [128, 0, 128],
48
+ [0, 128, 128],
49
+ [192, 192, 192],
50
+ [128, 128, 128],
51
+ [255, 128, 0],
52
+ [128, 255, 0],
53
+ [128, 0, 255],
54
  [255, 0, 0],
55
  [0, 255, 0],
56
  [0, 0, 255],