Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,9 @@ class TargetMaskConvertTransform(ItemTransform):
|
|
117 |
|
118 |
|
119 |
|
120 |
-
|
|
|
|
|
121 |
learn = from_pretrained_fastai("islasher/segm-grapes")
|
122 |
|
123 |
def transform_image(image):
|
|
|
117 |
|
118 |
|
119 |
|
120 |
+
def get_y_fn (x):
|
121 |
+
return Path(str(x).replace("Images","Labels").replace("color","gt").replace(".jpg",".png"))
|
122 |
+
|
123 |
learn = from_pretrained_fastai("islasher/segm-grapes")
|
124 |
|
125 |
def transform_image(image):
|