You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When training with large (>10^5) numbers of classes (Ref. https://arxiv.org/abs/1805.01978) the _find_classes() method is sloooow. Replacing the first line with: classes = [d.name for d in os.scandir(dir) if d.is_dir()] works correctly for me and is a lot faster (see Python docs: https://docs.python.org/3/library/os.html#os.listdir ). Thought others might appreciate this...
The text was updated successfully, but these errors were encountered:
When training with large (>10^5) numbers of classes (Ref. https://arxiv.org/abs/1805.01978) the _find_classes() method is sloooow. Replacing the first line with:
classes = [d.name for d in os.scandir(dir) if d.is_dir()]
works correctly for me and is a lot faster (see Python docs: https://docs.python.org/3/library/os.html#os.listdir ). Thought others might appreciate this...The text was updated successfully, but these errors were encountered: