How to create and format an image dataset from scratch for machine learning? -
i've worked ml .csv formats. i've worked image formats premade imagesets (mnist,etc). if create imageset scratch, how class labels typically formated? have manually title image of jpeg?
best, jeremy
i've worked image datasets formatted as:
- class names folders : name suggests, images belonging specific class filled specific folder folder name representing class.
for example dataset classify cats vs. dogs
-dataset/ --cats/ ---all cat images here --dogs/ ---all dogs images here
- single folder + text file : images dumped single folder - every image file have unique name. key-value pairs of
image_name : class
can stored rows in csv file.
for example
-dataset/ --all images heree --imagename_class.csv
- single folder class in filename : images can placed in single folder name of image having class label changing index value.
for example
-dataset/ --cat_1.jpg --cat_2.jpg --dog_1.jpg --cat_3.jpg --...
hope helps!
Comments
Post a Comment