|
@@ -38,7 +38,20 @@ python -m venv venv
|
|
|
pip install -r requirements.txt
|
|
pip install -r requirements.txt
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-### 2. Configuration (`.env`)
|
|
|
|
|
|
|
+### 2. Dataset & Training
|
|
|
|
|
+
|
|
|
|
|
+1. Download the dataset from [Roboflow](https://universe.roboflow.com/assignment-vvtq7/oil-palm-ripeness/dataset/5/download/yolov8)
|
|
|
|
|
+*Or you can also find your own separate source of datasets. Make sure the file/folder format structure is consistent, especially the .yaml file.
|
|
|
|
|
+2. Extract into `/datasets`.
|
|
|
|
|
+3. **Train the model:**
|
|
|
|
|
+```bash
|
|
|
|
|
+python train_script.py
|
|
|
|
|
+
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+3. Copy the resulting `best.pt` from `runs/detect/train/weights/` to the project root.
|
|
|
|
|
+
|
|
|
|
|
+### 3. Configuration (`.env`)
|
|
|
|
|
|
|
|
Ensure your `.env` file is populated with the following keys:
|
|
Ensure your `.env` file is populated with the following keys:
|
|
|
- `MONGO_URI`: Your MongoDB Atlas connection string.
|
|
- `MONGO_URI`: Your MongoDB Atlas connection string.
|
|
@@ -51,7 +64,6 @@ Ensure your `.env` file is populated with the following keys:
|
|
|
---
|
|
---
|
|
|
|
|
|
|
|
## 🚦 How to Run
|
|
## 🚦 How to Run
|
|
|
-
|
|
|
|
|
### Running the API Server
|
|
### Running the API Server
|
|
|
|
|
|
|
|
The API acts as the bridge for n8n or mobile integrations. You can start it using the root wrapper:
|
|
The API acts as the bridge for n8n or mobile integrations. You can start it using the root wrapper:
|