After famous Google Research group post about deep dream, they have released ipynb notebook to mess around with dream generation (available on github).
It requires
- NumPy, SciPy, PIL, IPython, or a scientific python distribution such as Anaconda or Canopy.
- Caffe deep learning framework (Installation instructions)
And there are a bunch of problems with installing caffe framework on Mac.