Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,9 @@ from albumentations import (
|
|
16 |
RandomScale
|
17 |
)
|
18 |
|
|
|
|
|
|
|
19 |
class SegmentationAlbumentationsTransform(ItemTransform):
|
20 |
split_idx = 0
|
21 |
|
|
|
16 |
RandomScale
|
17 |
)
|
18 |
|
19 |
+
def get_y_fn (x):
|
20 |
+
return Path(str(x).replace("Images","Labels").replace("color","gt").replace(".jpg",".png"))
|
21 |
+
|
22 |
class SegmentationAlbumentationsTransform(ItemTransform):
|
23 |
split_idx = 0
|
24 |
|