Installation¶
-
Install ffmpeg on your system. Some packages rely on it and we generally recommend ffmpeg because it is very useful for dealing with video data.
-
Open a terminal window/command prompt
Opening a terminal window/command prompt
- Click the Windows key + R
- Type
cmdand click OK to open a terminal window.
- Click the Launchpad icon.
- Type
Terminalin the search field and click on Terminal to open it.
You know what to do :)
-
Type
ffmpeg -versionand click Enter
If this command fails for some reason, make sure you install ffmpeg firstInstalling ffmpeg
- Open the ffmpeg download page.
- Under the "Get packages & executable files" section, click on the Windows logo.
- You will be redirected to a page with various builds. Click on the link for the "Windows builds from gyan.dev".
- Scroll down to the "Release builds" section and download the
ffmpeg-release-essentials.zipfile. - Extract the downloaded zip file and copy the
binsubfolder to, for example,C:\ffmpeg\bin. - Open the Start menu in Windows, search for "Environment Variables", and select "Edit the system environment variables".
- In the System Properties window, click on the "Environment Variables..." button.
- In the Environment Variables window, find the "Path" variable under the "System variables" section and select it. Click "Edit...".
- In the Edit Environment Variable window, click "New" and paste the path to the
bindirectory (e.g.,C:\ffmpeg\bin). Click "OK" to close all windows. - Verify that the installation is complete: Open a new (!) command prompt (cmd) and type
ffmpeg -versionand pressEnter. - If ffmpeg is installed correctly, you should see the version information for ffmpeg.
On MacOS you can use homebrew and type
brew install ffmpeginto your terminalInstructions depend on your system, but please do not hesitate to reach out if you run into issues.
-
-
Install miniconda.
Conda is a package manager and we recommend using miniconda to create an environment that OCTRON runs in.- Open your web browser and go to the official Miniconda download page.
- Download and execute the Miniconda Installer for your operating system (Windows, MacOS, or Linux). During installation make sure you click on the check box "Add to PATH" during installation. This way you will be able to execute
condacommands in your terminal. You can also click "register python as default python". - Restart your terminal.
-
Create a new Conda environment called "octron" with python version 3.11 by entering:
-
Activate the new environment:
-
You can now install OCTRON into your new conda environment. If you have an NVIDIA (CUDA compatible) graphics card in your machine, do
otherwise it suffices to dopip install --extra-index-url https://download.pytorch.org/whl/cu126 git+https://github.com/OCTRON-tracking/OCTRON-GUI.gitHow do I update OCTRON?
OCTRON is undergoing a lot of development. So if you haven't used in a while or just want to make sure you run the latest version, you should update it.
To update OCTRON make sure you conda activated your environment (step 4) and just run the abovepip installcommand (step 5) again. In most cases that is all you need. If you want to update all underlying libaries to the most up-to-date versions, append a-Uat the end of the command. In some rare cases updates might not work as expected, and you can then try to add an additional--force-reinstallat the end of the command to give it all a fresh start. -
Check the accessibility of GPU resources on your computer:
This should show your graphics card, if it is correctly installed and accessible by PyTorch. If your are using OCTRON on a modern mac this should show:and under windows or linux using a NVIDIA GPU this should show something similar to:CUDA GPU is not available. MPS (Metal Performance Shaders) GPU is available. MPS GPU: Apple Silicon GPUCUDA GPU is available. Number of CUDA GPUs: 1 CUDA GPU 0: NVIDIA GeForce RTX 3070 Ti MPS GPU is not available.If this fails, you should correct this first, since OCTRON will not engage your GPU otherwise (and thus be much slower). A common issue is that CUDA dependencies were not correctly installed. Check this issue for a potentially quick fix.