CPU based fastai

Jeremy mentioned during the video a CPU based fastai
Where is that?

1 Like

Make a conda enviornment using this.

To install a cpu only environment instead:

  • cd fastai
  • conda env update -f environment-cpu.yml

click – > enviornment-cpu.yml

7 Likes

FYI that didn’t work for me on a Mac. I got

ResolvePackageNotFound: 
  - pytorch >=0.2.0
  - mkl >=2018

Which isn’t that surprising, I guess.

Depending on what version of the OS you are on, you may have to install an older version of opencv-python.

I’m on 10.10.5 and had to do the following:

pip unintstall opencv-python
pip3 install opencv-python==3.2.0.6

Not sure why pytorch isn’t working, but you can certainly comment out the mkl line in the yml - that’s optional.

1 Like

@Ducky … I’m on a mac too here at work.

If you have an existing fastai environment, I’d suggest removing it and then following these steps:

cd fastai
conda env create -f environment-cpu.yml

If you have problems with opencv, see my previous comment here.

Once everything installs …

# conda env update -f environment-cpu.yml as needed
source activate fastai-cpu

The only problems I’ve encountered on my Mac is when trying to use the GPU.

Thanks, it turned out that I had to update conda, then everything worked. <3

2 Likes

On Mac 10.13.3, fastai cpu env installation worked normally.

getting the above mentioned error while running the conda env update -f environment-cpu.yml on windows , any help would be appreciated.