I randomly get error when any fastai module is importing torch.as_tensor. No module named torch.as_tensor.
I am using google colab. I don’t understand why.
The line which imports “fastai.transforms” is trying to import the contents in the directory old/fastai. If you are on Windows, the symbolic link might be broken and you have to manually create a sym link using command prompt.
Hi, I had the same problem. Windows is in a kind experimental mode at the moment. Please follow the instruction from this post, Howto: installation on Windows
I am using google colab and I also have the same problem. I am trying to make a prediction for a single image file that I’ve opened in lesson1 notebook. based on the instructions in the forum, I should first transform my image using tfms_from_model function. However, I get an NameError which says name ‘tfms_from_model’ is not defined. I tried defining it by importing fastai.transforms but I get this error which you are talking about.