Skip to content
Discussion options

You must be logged in to vote

Hi @ZhengPeng7 !
Thanks a lot for training the model and sharing the checkpoints — they worked great!

I figured out why I wasn’t getting the segmented images with my own training on Windows OS . In dataset.py (line 64), the replacement

 p_gt = p.replace('/im/', '/gt/')[:-(len(p.split('.')[-1])+1)] + ext

p.replace('/im/', '/gt/') works on Linux, but not on Windows and due to which the label path remains the same as original image. so the replacement '/im/' → '/gt/' never happens for me on my Windows.

So my labels were actually just grayscale versions of the input images itself, not the real GT masks.

        image = path_to_image(self.image_paths[index], size=self.data_size, color_type='rgb'

Replies: 4 comments 15 replies

Comment options

You must be logged in to vote
5 replies
@sau-arv-gul
Comment options

@sau-arv-gul
Comment options

@ZhengPeng7
Comment options

@sau-arv-gul
Comment options

@ZhengPeng7
Comment options

Comment options

You must be logged in to vote
3 replies
@ZhengPeng7
Comment options

@sau-arv-gul
Comment options

@ZhengPeng7
Comment options

Comment options

You must be logged in to vote
2 replies
@sau-arv-gul
Comment options

Answer selected by ZhengPeng7
@ZhengPeng7
Comment options

Comment options

You must be logged in to vote
5 replies
@ZhengPeng7
Comment options

@sau-arv-gul
Comment options

@ZhengPeng7
Comment options

@sau-arv-gul
Comment options

@ZhengPeng7
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants