spMohanty / PlantVillage-Dataset

Dataset of diseased plant leaf images and corresponding labels
643 stars 673 forks source link

PlantVillage Dataset For Tensorflow #7

Open spikopat opened 5 years ago

spikopat commented 5 years ago

First of all thank you for sharing theese instructions. I have a question about creating label map. I going to use this dataset with tensorflow but how can i create label map for AI? I didn't find anything about it on internet.

Emizy commented 4 years ago

A label map is a list of item that you are currently training the system e.g assuming am training on a dataset that contact two classes CAT AND DOG, my label map will contain the object name cat or dog that point to the annotation object name.

example item { id: 1 name: 'cat' } item { id: 2 name: 'dog' }

in case you are using the TensorFlow model when generating your records from the .CSV file, the label map item id must correspond to the item listed inside TensorFlow records generating function

example: def class_text_to_int(row_label): if row_label == 'cat': return 1 elif row_label == 'dog': return 2

i hope this help someone later on..

sajidjavid544 commented 4 years ago

hi, i need annotation of data (CSV file ) to train ssd mobile net . Please guide me about csv file