The colab_zirc_dims package will work outside of Google Colab, and its processing notebooks can be run as Jupyter notebooks in a local Anaconda environment.
- Install Anaconda
- Open Anaconda
- (Optional but recommended) Create and activate a new virtual environment
- Install an appropriate version of CUDA-equipped (for Windows/Linux) or 'Default' (for Mac) Pytorch. Please refer to Pytorch documentation as to versions, etc. as this will depend on your device.
- Install opencv by running the command
pip install opencv-python
- Install Detectron2. Follow these directions for Windows installation.
- If Detectron2 fails to build, try installing ninja (
pip install ninja
), av (pip install av
) and, for Windows, pywin32 (conda install -c anaconda pywin32
), then try building it again
- Install colab_zirc_dims by running the command
pip install colab-zirc-dims
- Install jupyter (
conda install -c anaconda jupyter
) - Install ipywidgets (
conda install ipywidgets
) - Activate ipywidgets for Jupyter with the command
jupyter nbextension enable --py widgetsnbextension
- Find and download the desired notebook from this repository.
- Move the notebook to a an empty directory somewhere in the path for your Anaconda installation.
- Open Jupyter Notebook from the Anaconda Navigator panel, then open and run the notebook as per the instructions therein.
It should be possible to run colab_zirc_dims notebooks without an internet connection. This is, however, untested, and does require another, similarly equipped computer with an internet connection. A proposed workflow is as follows:
- Set up colab_zirc_dims on a computer with similar hardware and software to the target computer by following the 'Local installation' instructions above.
- Following the 'Running notebooks locally' directions, run the desired notebooks with a sample of your data. This will make sure that any non-included dependencies, models, etc. are downloaded.
- Follow the directions in this StackOverflow post to copy your colab_zirc_dims Anaconda environment to the non-connected computer.
- Copy the directory with notebooks +/- downloaded data from the internet-connected computer to the target computer. They should now be runnable without an internet connection.