This guide will help you install and run the project which is managed using Poetry, a dependency management tool for Python.
Before you begin, ensure you have the following installed:
- Python (Check the required version in the project)
- Poetry
-
Create a .env File
-
Create a file named
.env
in the project directory. -
Add the following environment variables to the file:
# .env # Environment variables for the project # OpenAI API Key OPENAI_API_KEY="" # SerpAPI API Key SERPER_API_KEY=""
-
Replace the values with your own.
-
-
Clone or Download the Project
- Clone the project to your local machine, or download and extract the project archive.
-
Navigate to Project Directory
- Open your terminal or command prompt.
- Change directory to the project folder:
cd path/to/project
-
Install Dependencies
- Run the following command in the project directory:
poetry install
- This command installs all dependencies listed in
pyproject.toml
.
- Run the following command in the project directory:
-
Activate the Virtual Environment
- Poetry creates a virtual environment for the project. Activate it with:
poetry shell
- Poetry creates a virtual environment for the project. Activate it with:
-
Running the Scripts
- Pose Estimation
poetry run pose
- Object Detection
poetry run object
- Depth Estimation
poetry run depth
- Side by Side (Pose and Object Detection)
poetry run combined
- LLM Chat
poetry run chat
- LLM Agent
poetry run agent
- If you encounter installation errors, check the error messages for guidance or open an issue on the github repo.
- Verify your Python version is compatible with the project's requirements.
- To add a new dependency:
poetry add package-name