Closed a-sajjad72 closed 5 months ago
Hi,
You should use torch.argmax for finding the predicted class. You will find attached the json file mapping the class index to the species id. If you want the actual name, you can use then use the file "plantnet300K_species_id_2_name.json" to map the species id to the species name. I hope this helps. class_idx_to_species_id.json
I think you mention this link @garcinc : https://lab.plantnet.org/seafile/d/bed81bc15e8944969cf6/ right? Yet, it could be exposed on the README.md for other users to find it quickly, wdyt?
Yes this is the correct link. I updated the README.md and added class_idx_to_species_id.json to the seafile.
thanks @josephsalmon @garcinc for your kind assistance. You guys really made my day. I wish I could make that PR.
I had used the pre-trainded model for recognizing the plant images. I had the index of the prediced class. but nowhere found the mapping of the actual classes. How do i get the actual class name for the predicted class. Here is the code which i had tried