There’s a Kaggle task to estimate the class of plant seedlings, which I noticed while going through Fast AI 2022 session lesson 1. (Plant Seedlings Classification | Kaggle)
Training went well for me. To submit the submission file, I’m going to use the code below.
val = []
for file in get_image_files(test_path):
result = {}
result['file']=file.name
preds,_,_= learn.predict(PILImage.create(file))
result['species']=preds
val.append(result)
This code runs over each file one by one and tries to guess the value. Is there a more efficient way to accomplish the same thing.