From_similars not working


I am using fastai v1 course v3. I tried to use from_similars, but internally an error raises due to do_crop argument as below. Kindly help.

ds, idxs = DatasetFormatter().from_similars(learn, ds_type=DatasetType.Valid)


Why would from_similars end up passing an invalid argument internally??

My program is exactly as in course v3 notebook here.

And here is mynotebook showing the complete flow with error at the end.