To test your installation, a small Python script is given below, which you can cut and paste in your Juypter project and execute.
You will need to install the additional packages as specified in the MacOS installation. Some of the tutorials in the Caffe2 website also require the installation of zeromq, which is installed using the following command −Įxecute the following command on your console prompt −Ĭonda install -c pytorch pytorch-nightly-cpuĪs you must have noticed, you would need Anaconda to use the above installation. In addition to the above, you will need a few third-party libraries, which are installed using the following commands − Execute the following command on your console prompt It uses Anaconda for Jupyter environment. The instructions given here are as per the Caffe2 installation site for pre-built binaries. The installation can be of four types as given below −ĭepending upon your preference, select any of the above as your installation type. Now, we shall understand the steps for MacOS installation on which all the projects in this tutorial are tested. On the installation page of Caffe2 site which is available at the link you would see the following to select your platform and install type.Īs you can see in the above screenshot, Caffe2 supports several popular platforms including the mobile ones.
To use the pre-trained models or to develop your models in your own Python code, you must first install Caffe2 on your machine.
Now, that you have got enough insights on the capabilities of Caffe2, it is time to experiment Caffe2 on your own.