mrartemev
(Maxim Artemev)
March 6, 2018, 5:11pm
1
There is a new realization of an Omniglot Dataloader in torchvision
https://github.com/pytorch/vision/blob/master/torchvision/datasets/omniglot.py
I’d like to use it, but can’t import it
from torchvision.datasets import Omniglot
ImportError: cannot import name 'Omniglot'
I suppose it was recently added and is thus in the master branch. Did you install torchvision
using pip
?
mrartemev
(Maxim Artemev)
March 8, 2018, 9:45pm
3
I’ve tried both conda and source installation, no result
The update with omniglot was month ago
That’s strange. Could you post your torchvision.__version__
?
I have 0.2.0
and I can import it with: from torchvision.datasets import Omniglot
.
mrartemev
(Maxim Artemev)
March 9, 2018, 11:42am
5
Yep, it is 0.2.0 and still ImportError
Ok, that’s strange. I’ve tested it on my other machine (also with torchvision 0.2.0) and can’t import the Dataset either.
Let me check it again on my laptop this evening.
8Gitbrix
(Ashwin Jeyaseelan)
April 14, 2018, 9:37pm
7
I’m having the same exact issue. Did you ever find a fix?
mrartemev
(Maxim Artemev)
April 15, 2018, 2:38pm
8
Yes, magically after installing torchvision from source and then uninstalling it a few times helped