Skip to content

v1.2.0

Choose a tag to compare

@ebennequin ebennequin released this 30 Mar 08:37
· 25 commits to master since this release
ae75fde

🎉 EasyFSL is now fully tested for Python 3.10!

There were also a lot of issues before related to TaskSampler being too permissive, causing downstream errors that were hard to understand. So now you get an explicit error with TaskSampler if you:

  • initialize it with a dataset that's too small (number of classes smaller than n_way, or number of instances in a class smaller than n_shot + n_query)
  • call TaskSampler.episodic_collate_fn() with input data that is not a (Tensor, int) or (Tensor, Tensor[0-dim int]) tuple.

Thanks to @Aml-Hassan-Abd-El-hamid for their good will and contribution.