joortif commited on
Commit
863a1f1
verified
1 Parent(s): 79b9069

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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