:fas:`download` Installation ============================ The packages requires at least `Python 3.12 `_. To install the package via `pip `_, simply run: .. code-block:: bash pip install glasses-detector Or, to install it from source, run: .. code-block:: bash git clone https://github.com/mantasu/glasses-detector cd glasses-detector && pip install . .. tip:: You may want to set up `PyTorch `_ (use *Nightly* version for compatibility with *Python* :math:`\ge` *3.12*) in advance to enable **GPU** support for your device. Note that *CUDA* is backwards compatible, thus even if you have the newest version of `CUDA Toolkit `_, *PyTorch* **GPU** acceleration should work just fine. .. note:: By default, the required models will be automatically downloaded and saved under *Torch Hub* directory, which by default is ``~/.cache/torch/hub/checkpoints``. For more information and how to change it, see `Torch Hub documentation `_.