Installing Caffee on Docker

Downloaded the Docker image from BVLC’s repository. First time I tried, the pull failed with a Docker i/o error: “failed to register layer” Then reset Docker to factory defaults. Then the pull worked: dowboaded newer image for bvlc/caffee: cpu.

“Cold-brewed” Caffee

I’m going to install Caffee on a system that doesn’t have a GPU. This MacBook Air 2014 only has Intel integrated graphics… no dedicated graphics chip. Is it possible to install and run Caffee without a GPU?  Yes, according to their docs. Caffee can be configured to use only the CPU. Uncomment CPU_ONLY := 1 in MakeFile.config to get “cold-brewed” Caffee.

Of course, the deep learning algorithms required for image classification would run much faster with GPU support, as the parallel architecture of a GPU is ideally suited to those algorithms. But they can still run on the CPU alone. So I’m going to try the deep learning tutorial without a GPU. Something may be learned by starting from the minimum and working up.

Installing Caffee on OS X 

I found out yesterday that I’d have to install Caffee first before I could start the demo in  Mocha. Caffee is a CNN (Convolutional Neiral Network) developed by Berkely Vison and Learning Center. The tutorial I’m following (at mochajl.readthedocs.io)  requires using Caffee’s API to export the Caffee model parameters to HDF5 format. After that, the exported file can be input to Mocha. To sum up, I have to install Caffee first. That’s next…