"change model"
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from PIL import Image
|
|
| 6 |
import torch
|
| 7 |
from transformers import AutoImageProcessor, AutoModelForSemanticSegmentation
|
| 8 |
|
| 9 |
-
MODEL_ID = "
|
| 10 |
processor = AutoImageProcessor.from_pretrained(MODEL_ID)
|
| 11 |
model = AutoModelForSemanticSegmentation.from_pretrained(MODEL_ID)
|
| 12 |
|
|
|
|
| 6 |
import torch
|
| 7 |
from transformers import AutoImageProcessor, AutoModelForSemanticSegmentation
|
| 8 |
|
| 9 |
+
MODEL_ID = "mattmdjaga/segformer_b2_clothes"
|
| 10 |
processor = AutoImageProcessor.from_pretrained(MODEL_ID)
|
| 11 |
model = AutoModelForSemanticSegmentation.from_pretrained(MODEL_ID)
|
| 12 |
|