Hello,
I am trying to extract the crop_id label dictionary using the below code provided in the notebook in vain:
# extract crop_id-label dictionary
with open ('ref_agrifieldnet_competition_v1/ref_agrifieldnet_competition_v1_labels_train/ref_agrifieldnet_competition_v1_labels_train_001c1/ref_agrifieldnet_competition_v1_labels_train_001c1.json') as ll:
Just use
crop_dict = { 1 : "Wheat", 2 : "Mustard", 3 : "Lentil", 4 : "No Crop", 6 : "Sugarcane", 8 : "Garlic", 15 : "Potato", 5 : "Green pea", 16 : "Bersem", 14 : "Coriander", 13 : "Gram", 9 : "Maize", 36 : "Rice" }from starter notebook. If you want to extract it, starter shows how, or check paths or download for correctness and completeness.
Thanks. I appreciate.
Thanks. I hope it helps! I see you already use starter code ... then perhaps check your path?
It has helped. Thanks again.