Binary => HDF5 ok

Ran the shell script to download the binary files and convert them to HDF5. First the download failed because the wget utility wasn’t installed. I got wget for El Capitan from, then ran the script again, download successful. Then ran convert.jl and this worked too. Two HDF5 files have been created, named train and text. I can open either using h5dump:

Conversion to HDF5

Got the shell script from here:

It will download the binary files from the CIFAR-10 dataset and convert them to HDF5 format which is readable by Mocha ( this script calls convert.jl to do the conversion).

Step forwards

Resolved the HDF5 error by pushing the path line to Julia config file (as suggested in the HDF5 installation docs).

push!(Libdl.DL_LOAD_PATH, “/opt/local/lib”)“HDF5”)

So the problem before was that HDF5 was installed but Julia wasn’t seeing it.

problems installing HDF5 

To recap, got this error on running the Julia convert script:

UndefVarError: h5open not defined

in macro expansion; at ./REPL[9]:2 [inlined]

So the HDF5 module is not correctly installed, although I’d assumed it was when I ran convert.jl.

The top line of output from the compiler confirms that:

ERROR: LoadError: LoadError: HDF5 not properly installed. Please run“HDF5”)

So reinstalled HDF5 as recommended:


Getting build errors…. and the compiler suggests:

— build the package(s) and all dependencies with `“HDF5”)`

– build a single package by running its `deps/build.jl` script

But I’ve already tried the package manager build twice without success, so next I’ll try cloning the HDF5 code from Github.

Converting the CIFAR-10 dataset

The binary files of the CIFAR-10 dataset need to be converted to HDF5 as that is the format recognised by Mocha. To do this, I will use the Julia script convert.jl provided by pluskid. First, in Julia used the package manager to install HDF5: Pkg.add(“HDF5”). Then ran the conversion script. I get the following error:

UndefVarError: h5open not defined
in macro expansion; at ./REPL[9]:2 [inlined]
in anonymous at ./<missing>:?

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  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…

Setting up Julia locally

Setting up Julia locally first, before trying the cloud environment. Running OS X, El Capitan. Python and iPython weee already installed. So I first installed Julia, then installed IJulia.jl from the Julia REPL (Read Eval Print Loop). IJulia is an interface between Julia and Jupyter notebooks. Then installed Images.jl, also from the Julia REPL. Then Gadfly, a visualization  tool written in Julia. Will continue tomorrow night.