Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,7 +85,7 @@ class UnifiedCartographer(nn.Module):
|
|
| 85 |
def __init__(self, num_classes=5):
|
| 86 |
super().__init__()
|
| 87 |
self.model = SegformerForSemanticSegmentation.from_pretrained(
|
| 88 |
-
"nvidia/segformer-b5-finetuned-
|
| 89 |
num_labels=num_classes, ignore_mismatched_sizes=True
|
| 90 |
)
|
| 91 |
def forward(self, x):
|
|
|
|
| 85 |
def __init__(self, num_classes=5):
|
| 86 |
super().__init__()
|
| 87 |
self.model = SegformerForSemanticSegmentation.from_pretrained(
|
| 88 |
+
"nvidia/segformer-b5-finetuned-ade-640-640",
|
| 89 |
num_labels=num_classes, ignore_mismatched_sizes=True
|
| 90 |
)
|
| 91 |
def forward(self, x):
|