Improve and polish pycaffe

- fix input preprocessing configuration in 3cac223 picking up on #733
- update examples' outputs given correct preprocessing 9d7346b, always include caffe pythonpath 45d74bd, and reword classification + time on a gtx 770 fc01ee6
- add console output with human-readable labels and a grayscale flag to classify.py courtesy of @petewarden's #735
- fix #525 by scaling data to [0, 255], doing mean subtraction, and then input scaling
Right. This doesn't belong and I'll drop it.

On Monday, August 4, 2014, longjon <notifications@github.com> wrote:

> In python/caffe/io.py:
>
> > @@ -40,7 +43,18 @@ def resize_image(im, new_dims, interp_order=1):
> >      Give
> >      im: resized ndarray with shape (new_dims[0], new_dims[1], K)
> >      """
> > -    return skimage.transform.resize(im, new_dims, order=interp_order)
> > +    if im.shape[-1] == 1 or im.shape[-1] == 3:
> > +        # skimage is fast but only understands {1,3} channel images in [0, 1].
> > +        im_min, im_max = im.min(), im.max()
> > +        im_std = (im - im_min) / (im_max - im_min)
> > +        resized_std = resize(im_std, new_dims, order=interp_order)
> > +        resized_im = resized_std * (im_max - im_min) + im_min
> > +    else:
> > +        # ndimage interpolates anything but more slowly.
> > +        scale = tuple(np.array(new_dims)
> > +                      / np.array(im.shape[:2], dtype=np.float32))
>
> Not sure what dtype=np.float32 is doing here... won't it just be promoted
> to float64 anyway? E.g.,
>
> $ ipython --no-banner
> In [1]: import numpy as np
> In [2]: (np.array(5) / np.array(4, dtype=np.float32)).dtypeOut[2]: dtype('float64')
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/BVLC/caffe/pull/816/files#r15795016>.
>