Spaces:
Sleeping
Sleeping
Commit
·
36ac725
1
Parent(s):
b47f30d
Update app06.py
Browse files
app06.py
CHANGED
|
@@ -6,7 +6,7 @@ import numpy as np
|
|
| 6 |
import torch
|
| 7 |
|
| 8 |
# Load the model and processor
|
| 9 |
-
model_dir = "defectdetection/model"
|
| 10 |
model = SegformerForSemanticSegmentation.from_pretrained(model_dir)
|
| 11 |
processor = SegformerImageProcessor.from_pretrained(model_dir)
|
| 12 |
model.eval()
|
|
|
|
| 6 |
import torch
|
| 7 |
|
| 8 |
# Load the model and processor
|
| 9 |
+
model_dir = "defectdetection/model/"
|
| 10 |
model = SegformerForSemanticSegmentation.from_pretrained(model_dir)
|
| 11 |
processor = SegformerImageProcessor.from_pretrained(model_dir)
|
| 12 |
model.eval()
|