I got that error. Fixed by removing all files from /cache/tmp.
Apologies Chris, I was kind of busy for past 4 days. well, answering your question you can include your environment using -n like this “conda install -n environmentName” check the below example for more information.
Has anyone run into this issue? Each time I run this cell, it gets most of the way done, and then hangs, and it lets me run other cells afterwards, but lrf is never set to anything, so I can’t progress. Any help/advice would be appreciated!
this means lr started increasing and there is no reason to continue testing (increase lr anymore).
Not sure if you already resolved it but just try this in paperspace:
from fastai.transforms import *
from fastai.conv_learner import *
So, after running some notebooks on AWS instances, I thought of trying out Paperspace to see if I’d get speedups. Ran into this issue as well. I have a feeling that it has to do with load order and dependencies, kinda tricky to figure out when
import * going on.
Edit: There’s existing threads around this discussion. Just ran into them and adding links here, for future ref:
I am no longer using Paperspace, but try the suggested solution by @Deb above, but since @jeremy removed the dependency on
cv2, have you tried
git pull and ran the notebook again. Another option can be to do a scratch installation on their Ubuntu 16.04 image, it doesn’t have the bloat of a loaded desktop environment too, and you can use 16.04 version this way. You’ll only be able to SSH in the ubuntu image though
Yup as of yesterday (with latest git pull) I still see the issue if I don’t import torch, cv2 ahead of everything else in paperspace. I’m able to proceed with the import. So, not a major issue for me.
I was revisiting Lecture 1 wherein I realized Jeremy’s approach to writing code. I missed it at that time (probably was on the forum at the moment). But his take is interesting.
His coding style is compact and uses names that are shortish. Reasoning being:
- When code is compact, you can see everything that is happening, in 1 line or within a small region
- Shorter variable names are a middle ground between what mathematicians use (single letters) and software engineers use (longer variable names)
Thanks for noticing
I’ve re-recorded the lesson 1 video to make it shorter, and to show how to use both Crestle and Paperspace. The new version is in the top post, or use this link: https://youtu.be/IPBSB1HLNLo
I’m using Ubuntu 16 GPU+ (NVIDIA QUADRO M4000) from paperspace. It takes me 26sec/it just to run these code. So it end up 2hrs 45 minutes to run everything. Am I setting up the environment correctly?
data = ImageClassifierData.from_paths(PATH, tfms=tfms_from_model(arch, sz))
learn = ConvLearner.pretrained(arch, data, precompute=True)
14%|█▍ | 51/360 [21:35<2:10:49, 25.40s/it]
I’m having the same problem on paperspace. I set the machine up using
curl http://files.fast.ai/setup/paperspace | bash.
I followed the instructions in the video for Paperspace, but was unable to access the Jupyter Notebook externally (I used Ubuntu 16, West Coast, GPU). I tried assigning a static public IP address and configuring Jupyter to serve requests coming from any IP address, but that didn’t work either. I’ve also contacted Paperspace support.
Did you use http://files.fast.ai/setup/paperspace to set it up? Perhaps the firewall isn’t configured to allow 8888?
sudo ufw allow 8888:8898/tcp
I did, thanks Ser @davos; and that worked for me. Thanks!
No, that sounds like it’s not using the GPU. Someone else mentioned they had to conda remove and reinstall pytorch after rebooting.
Feeling pretty good about lesson 1. Here is recap about what I did.
- Finished watching the lesson
- Set up my environment (script crashed when installing anaconda but I was able to hack at it till it worked)
- Made my own breakfast dataset (frenchtoast, pancakes, and waffles)
- Tried to re-create notebook from memory to make an image classifier for my breakfast dataset. I ended up copying a lot of the lesson’s code but I typed it myself. Copying by typing out the code was where I learned most during the lesson.
- Found a useful forum post about multi class probabilities and a new class for visualize image model results.
Here are links:
breakfast ipynb. Pictures at the end are pretty interesting. I really surprised that some of the pancakes were not classified correctly. I was also unable to get the Cyclical Learning Rates to work. I think this might be because of a lack of images (50 train, 50 validation of each category) - but any advice here is appreciated.
20 images will be sufficient for validation?
(20% of the data)
Also if you have downloaded the images manually, then there’s a helper script in GitHub to automate the job…
google image downloader was the repository name if I am correct…
In case anyone else hit this error:
libSM.so.6: cannot open shared object file: No such file or directory
sudo apt-get install -y python-qt4