Upload 4 files
Browse files
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title:
|
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,
|
22 |
|
23 |
feature_extractor = SegformerFeatureExtractor.from_pretrained(
|
24 |
"nvidia/segformer-b5-finetuned-cityscapes-1024-1024"
|
25 |
)
|
26 |
-
model =
|
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 |
|