Skip to content

Latest commit

 

History

History
64 lines (54 loc) · 1.32 KB

README.md

File metadata and controls

64 lines (54 loc) · 1.32 KB

Fast AI Tutorial

Reference

Lesson 1: Image Recognition

Get data

Kaggle CLI

Arrange data

$ sh arrange_data.sh

Reference

Memo to train model by using GPU

  • modify ~/.theanorc
[global]
floatX = float32
device = gpu
optimizer = fast_run

[lib]
cnmem = 0.8

[nvcc]
fastmath = True

[blas]
ldflags = -llapack -lblas
  • modify ~/.keras/keras.json
{
    "image_dim_ordering": "tf", 
    "epsilon": 1e-07, 
    "floatx": "float32", 
    "backend": "tensorflow"
}
  • change "tf" to "th"
  • change "tensorflow" to "theano"
  • "tf" = tensorflow
  • "th" = theano
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-8.0/lib64
$ export CUDA_HOME=/usr/local/cuda-8.0
$ export PATH=$PATH:/usr/local/cuda-8.0/bin