This repository hosts the Transformer-Polyp-Tracker, a machine learning project that uses django, pytorch to accomplish the real-time detection of polyps in colocopic videos.
To install the required packages, follow these steps:
- Clone this repository to download the project files:
git clone https://github.com/alancarlosml/transformer-polyp-tracker.git
- Navigate to the project directory using the command line:
cd transformer-polyp-tracker
- Create a new virtual environment to keep the project's dependencies separate from other Python projects on your computer:
virtualenv venv
orconda env create --name venv
(Conda) - Activate the virtual environment to use the packages installed in the environment:
source venv/bin/activate
(Linux) orvenv\Scripts\activate
(Windows). For Conda,conda activate venv
- Install the required packages:
pip install -r requirements.txt
Before running the application, you'll need to start the SQLite database. To do this, follow these steps:
- Open a terminal/command prompt window
- Navigate to the project directory:
cd transformer-polyp-tracker
- Run the following command to create the SQLite database:
python manage.py migrate
python manage.py migrate tpt reports
Once the database is set up, you can run the application using the following command:
python manage.py runserver
Then, open a web browser and go to http://127.0.0.1:8000/ to use the application.
This work was supported by Coordenação de Aperfeiçoamento de Pessoal de Nível Superior (CAPES), Brazil - Finance Code 001, Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq), Brazil, and Fundação de Amparo à Pesquisa e ao Desenvolvimento Científico e Tecnológico do Maranhão (FAPEMA), Brazil.