Can I get the original image name?
#7
by
huang11
- opened
The image name is only stored as the image bytes in parquet. In certain scenarios, is it possible to obtain or provide the original image name?
You mean that you want to convert the dataset into another format, such that the bytes of the images are not directly encoded in the dataset, but it's rather a path to an image locally stored on your computer?
In that case it's also possible with datasets
library, where each image would become
{
path: <your_path>,
bytes: None,
}
instead of
{
path: None,
bytes: <your_bytes>,
}
like it is currently stored now (but automatically decoded to PIL images by the datasets
library).