This project demonstrates the segmentation of grape images in real-time.
-
Clone the repository:
git clone https://github.com/VVebSharE/DLHackWeb
-
Navigate to the project directory:
cd DLHackWeb
-
Install the required Python packages using pip:
pip install -r req.txt
-
Create a
.env
file in the project root directory and add your JWT secret key:JWT_SECRET_KEY=your_secret_key_here
-
Update in inferece.py to add the path of the model file.
from PIDNET_UPDATed.tools.custommy import Model #change this import to your model mymodel = Model()
To run the Flask application, execute the following command:
flask run
To run on local network:
flask run --host=0.0.0.0
Update the request url in the frontend to the url of the backend server.