Yase (Yet Another Semantic Extractor) is a Python library for depth estimation using the Monodepth2 and FastDepth models. This project is designed for use in applications that require semantic field extraction from video streams, while maintaining real-time performance.
- Depth estimation from images using the Monodepth2 model.
- Automatic downloading of pre-trained model weights.
- GPU support for increased performance.
- Structured to allow easy extension and integration into larger projects.
- Python 3.8 or higher
Poetry
for package management and installation- A CUDA-enabled GPU for running on GPU (optional)
-
Clone the repository:
git clone https://github.com/yourusername/yase.git cd yase
-
Install the package using
Poetry
:poetry install
-
If you don't have
Poetry
installed, you can install it viapip
:pip install poetry
Then run the installation again:
pip install dist/yase-0.1.0-py3-none-any.whl
Here's how to use the Yase
library to estimate depth from an image:
from yase.yase import Yase
# Initialize the Yase object
yase = Yase()