I understand the output but I’m wondering where does .stem and .suffix come from. is this from fast.ai? Thanks
get_y_fn = lambda x: path_lbl/f'{x.stem}_P{x.suffix}'
from camvid : https://github.com/hiromis/notes/blob/master/Lesson3.md
I understand the output but I’m wondering where does .stem and .suffix come from. is this from fast.ai? Thanks
get_y_fn = lambda x: path_lbl/f'{x.stem}_P{x.suffix}'
from camvid : https://github.com/hiromis/notes/blob/master/Lesson3.md
Hey @andrew77, they come from python’s pathlib library. Cheers.
Ok got it. Thanks
https://docs.python.org/3/library/pathlib.html?highlight=stem#pathlib.PurePath.stem
I think it’s from
pathlib
(https://docs.python.org/3/library/pathlib.html?highlight=stem#module-pathlib)