Lesson 1 In-Class Discussion

(Hannan Ali) #262

The first item under the Lesson Resources heading mentions the unedited videos for Section 1 and Section 2 :smile:

(Stephen Lizcano) #263

What Python version are you running?

(Maureen Metzger) #264

Hi @ange, I used the ami from last year’s course, view the getting set up video from last year’s course for details: http://course.fast.ai/lessons/aws.html

(Vikrant Behal) #265



thanks :slight_smile:

anyone get this error when running through this line in the notebook?

from fastai.imports import *

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-178e52808742> in <module>()
----> 1 from fastai.imports import *

~/fastai/courses/dl1/fastai/imports.py in <module>()
  1 from IPython.lib.deepreload import reload as dreload
----> 2 import PIL, os, numpy as np, math, collections, cv2, threading, json, bcolz, random, scipy
  3 import random, pandas as pd, pickle, sys, itertools, string, sys, re, datetime
  4 import seaborn as sns, matplotlib
  5 from abc import abstractmethod

ModuleNotFoundError: No module named 'cv2'

 When I try to do pip3 install cv2, I get the error:
 Collecting cv2
 Could not find a version that satisfies the requirement cv2 (from versions: )
 No matching distribution found for cv2

I’m running this within Anaconda 5.0.1, python 3.6


For people who are interested in using Google cloud service - they are providing free cloud service to people having valid credit cards. Also there is a post which I have compiled Lesson 1 using Google Cloud . Feel free to add suggestions in the reply box.

(Santhanam Elumalai) #268

Yeah, you have to install the opencv and other dependent libraries manually, Check this link.
https://anaconda.org/menpo/opencv3. I had the same problem, If will ask you to install another 4 to 6 lib like this, just search in conda cloud for the python3.6 v and install it in your machine.
Make sure you note down all your cmd’s used to install and post it in the forum for further reference. I mistakenly closed the cmd list after the joy of successful run :frowning:


thx @santhanam :slight_smile:

(Santhanam Elumalai) #270

If you experience some dead lock after successful lib installation follow this link, because I am having this issue for now :slight_smile:


@memetzgz, ok. Thanks for your response.


Where are results stored after running the course1 notebook in crestle environment? I like to see the output. (predicted labels for images under ‘test’ directory).

(Sam Lloyd) #273

So I’m running into this:

AssertionError                            Traceback (most recent call last)
<ipython-input-12-d4fe8b8bb391> in <module>()
      3 # Setting requires_grad=False indicates that we do not need to compute gradients
      4 # with respect to these Variables.
----> 5 x = Variable(x.type(dtype), requires_grad=False)
      6 y = Variable(y.type(dtype), requires_grad=False)

/home/ubuntu/anaconda3/lib/python3.5/site-packages/torch/_utils.py in _type(self, new_type, async)
     33     if new_type.is_sparse:
     34         raise RuntimeError("Cannot cast dense tensor to sparse tensor")
---> 35     return new_type(self.size()).copy_(self, async)

/home/ubuntu/anaconda3/lib/python3.5/site-packages/torch/cuda/__init__.py in _lazy_new(cls, *args, **kwargs)
    264 @staticmethod
    265 def _lazy_new(cls, *args, **kwargs):
--> 266     _lazy_init()
    267     # We need this method only for lazy init, so we can remove it
    268     del _CudaBase.__new__

/home/ubuntu/anaconda3/lib/python3.5/site-packages/torch/cuda/__init__.py in _lazy_init()
     82         raise RuntimeError(
     83             "Cannot re-initialize CUDA in forked subprocess. " + msg)
---> 84     _check_driver()
     85     torch._C._cuda_init()
     86     torch._C._cuda_sparse_init()

/home/ubuntu/anaconda3/lib/python3.5/site-packages/torch/cuda/__init__.py in _check_driver()
     56 Found no NVIDIA driver on your system. Please check that you
     57 have an NVIDIA GPU and installed a driver from
---> 58 http://www.nvidia.com/Download/index.aspx""")
     59         else:
     60             # TODO: directly link to the alternative bin that needs install

Found no NVIDIA driver on your system. Please check that you
have an NVIDIA GPU and installed a driver from

I’m running on a p2 instance on AWS, so very much have a GPU! a bit stumped on what to do

(Freddie Vargus) #274

Watching a lecture right now from Yann LeCun :slight_smile:


(Benjamin DeKoven) #275


For how many lessons will Crestle be an acceptable environment?

If not optimum for all lessons, then will another AWS AMI be setup?

I am asking since the current AWS AMI requires a lot of setup adjustment as you are already aware. I do believe that this activity is a great learning step. But I also need to spend effort on lesson1 to start the deep learning mindfulness. The Crestle environment serves this purpose right now for me.

Thank you,

(Ibrahim El-Fayoumi) #276

Python 3.63
It worked for a while and after installing labextension I got this error

(Jeremy Howard) #277

Crestle will be fine for the whole course. I’m setting up an AMI right now, which will not require any extra setup to use.

(Victor Alfonso Arias Vanegas) #278

Thank you Mr. @jeremy for this AMI, i am waiting for this.

(Zao Yang) #279


(Vikrant Behal) #280

@jeremy @yinterian Has the data set for cats vs dogs changed from v1?

(Jeremy Howard) #281