This guide walks you through setting up the environment and running the Streamlit object detection app:
1. Create a Virtual Environment (Recommended):
A virtual environment isolates project dependencies, preventing conflicts with other Python installations. Use the venv module:
Bash
python3 -m venv my_env
Activate the virtual environment:
Bash
` source my_env/bin/activate
2. Install Required Packages:
Once your virtual environment is activated, install the necessary packages using pip:
Bash
pip install torch torchvision pandas opencv-python streamlit
3. Run the Streamlit App (Optional, Assuming You Have app.py):
If you have a Streamlit app script named app.py in your project directory, you can run it directly:
Bash
streamlit run app.py `
This will launch the Streamlit app in your web browser, typically at http://localhost:8501.