lakxs commited on
Commit
2c36eb3
1 Parent(s): 26b8a9d

Upload 4 files

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -2
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: segformer-b5-finetuned-cityscapes-1024-1024
3
  emoji: 💻
4
  colorFrom: blue
5
  colorTo: red
 
1
  ---
2
+ title: mymy
3
  emoji: 💻
4
  colorFrom: blue
5
  colorTo: red
app.py CHANGED
@@ -18,12 +18,12 @@ import matplotlib.pyplot as plt
18
  import numpy as np
19
  from PIL import Image
20
  import tensorflow as tf
21
- from transformers import SegformerFeatureExtractor, TFSegformerForSemanticSegmentation
22
 
23
  feature_extractor = SegformerFeatureExtractor.from_pretrained(
24
  "nvidia/segformer-b5-finetuned-cityscapes-1024-1024"
25
  )
26
- model = TFSegformerForSemanticSegmentation.from_pretrained(
27
  "nvidia/segformer-b5-finetuned-cityscapes-1024-1024"
28
  )
29
 
 
18
  import numpy as np
19
  from PIL import Image
20
  import tensorflow as tf
21
+ from transformers import SegformerFeatureExtractor, SegformerForSemanticSegmentation
22
 
23
  feature_extractor = SegformerFeatureExtractor.from_pretrained(
24
  "nvidia/segformer-b5-finetuned-cityscapes-1024-1024"
25
  )
26
+ model = SegformerForSemanticSegmentation.from_pretrained(
27
  "nvidia/segformer-b5-finetuned-cityscapes-1024-1024"
28
  )
29