Installation
Bitbox itself has minimum requirements, but it relies on face/body backends to generate expression and movement signals. These backends usually have more requirements. We highly recommend using our Docker images to install these backends, as installing them from source code may prove difficult for some. For currently supported backends, you need NVIDIA GPUs. New backends with CPU support are coming soon.
Installing Backends
The current version of Bitbox supports two face backends, namely 3DI and 3DI-lite. While 3DI provides more detailed outputs (e.g., a full 3D model of the face), 3DI-lite is much faster and more robust to occlusions. If your images don't have significant occlusions and you don't need a faster solution, we recommend using 3DI.
We recommend using Docker for installing all backends at once with no extra steps.
Using Docker is usually straightforward. However, 3DI requires downloading an external face model, which involves individually registering and requesting access, and updating our image with this model.
- Download the Dockerfile. We have two options for CUDA 11.8.0 or CUDA 12.2.2. Select the one that is most compatible with your NVIDIA GPU. 
- Register and download the face model. This is an automated process, and you should immediately get the download link in your email. Extract the model you downloaded and locate the file - 01_MorphableModel.mat.
- Place the Dockerfile and the face model ( - 01_MorphableModel.mat) in the same directory
- Within this directory, run the following command to build the image - docker build -t bitbox:latest .- The parameter - bitbox:latestis the name of the image to be created. You can change it if you wish. Please don't forget the- .at the end.
If you can install C++/CUDA codes from the source code, however, please go ahead and install 3DI from here. The instructions are provided there. This approach will install the 3DI as a native application on your system and can be slightly faster than using Docker.
Similarly, 3DI-lite can be installed from ... (COMING SOON)
Installing Python Library
Once you installed the backends, you can install the stable version of the Bitbox Python library using pip or the latest version directly from GitHub.
pip3 install bitboxWe recommend using a virtual environment. You will need to use python 3.8 or higher.
python3 -m venv env
source env/bin/activateFor the following steps, we will assume you have activated the virtual environment.
- Clone the Bitbox repository: - git clone https://github.com/compsygroup/bitbox.git
- Change to the Bitbox directory: - cd bitbox
- Install requirements: - pip3 install --upgrade pip pip3 install -r requirements.txt
- Install Bitbox: - python3 setup.py install
