OS: Linux (MacOS and Windows support is experimental.)
Note for MacOS X: If you still want to install Caffe on MacOS follow this guide: http://installing-caffe-the-right-way.wikidot.com/startAttention: CUDA 9 is not compatible with XCode 9 at the time of writing so you have to use an older XCode version (e.g. 8.3.3). If you have problems with tcmalloc-Error when running Barista, try to disable leveldb-support in makefile.config in caffe root folder:
USE_LEVELDB := 0.
Please also notice the known bug when having qtmultimedia installed (see here)
Note: this tutorial is aimed to describe an installation on Ubuntu 16.04 x86. The installation process on other operating systems may differ in some points (especially usage of the system package manager, in this case apt-get).
Python, pip and Qt
Barista is written in Python 2. So first of all install Python and the (python) package manager pip, which is needed to install other Python modules:
$ sudo apt-get install python python-pip
PyQt is needed for Baristas GUI. To install it, run:
There are a number of Python modules that need to be installed in order to run Barista. All of them can be easily installed by using the requirements file which is located in the Barista root Folder. The command to install all requirements is as follows:
$ pip2 install -r /path/to/requirements.txt
Of course, you need a working installation of caffe. For a detailed description see the official website. Although there is now an apt package available for Ubuntu >= 17.04, it is advisable to download and build the most current version from source.
Finally, you can run Barista from its root directory by using the main.py:
$ python main.py
Once you have a Barista Project created, you can also launch Barista with the project directly:
$ python main.py -o /path/to/project/
Caffe Path Configuration
On your first start of Barista, it will ask you to add a valid Caffe version (i.e., all required files of a local checkout of the caffe repository, in the following referred to as the Caffe Version). The following window will open and with a click on the file-buttons in the right corner you will be able to select the corresponding files and folders from your working directory. If the Caffe Root folder is set first, Barista tries to find the other files and folders automatically, if thats not possible, they need to be set manually.
After you have done this, select "Save and start Barista" and Barista adds the given Caffe Version, if valid, so you won't have to set it again the next time you start the program.
The window to select or create a new project will open right away.
Per-project Caffe Version
Barista keeps track of all Caffe Versions and one of them is set as default. However every project can define its own default Caffe Version. An empty per-project version (which is the default) makes Barista use the global setting. Caffe Versions can be changed using the entry "Tools -> Caffe Version Manager" in the menu bar.