I would like to train a face landmarks recognition model. I have prepared a dataframe in the following format:
uid image points
0 a/image_1.jpg a/image_1.pts
1 b/image_1.jpg b/image_1.pts
2 b/image_2.jpg b/image_2.pts
3 c/image_1.jpg c/image_1.pts
4 d/image_2.jpg d/image_2.pts
It maps image paths to appropriate landmarks paths. However, I can’t figure out how to generate an ImageDataBunch
from it. I was trying:
data = (
ImageItemList.
from_df(df, path='/path/to/data').
... # other steps go here
)
But it seems that my dataframe of path
arguments provided incorrectly. So I am getting an error that says something like:
FileNotFoundError: [Errno 2] No such file or directory: '/path/to/data/./0'
Could somebody advise how to better handle this kind of data?