An English-only packaging of the Streamlit-based YOLOv8 app for fruit and vegetable detection. Includes pretrained weights, custom weights, and the prepared dataset.
- Ensure Python 3.8+ is installed.
- From the
Source_Codefolder, install dependencies:pip install -r requirements.txt
- Launch the UI:
(equivalent:
python main.py
streamlit run app.py) - Optional training:
python train.py
app.py/main.py: Streamlit interface entrypoints.train.py: YOLOv8 training usingdataset/fruit_veg_v1/data.yaml.prepare_data.py: Rebuilds the dataset from COCO archives indownloads/.models/:yolov8n.pt,yolov8s.pt, and custom weights (best.pt,last.pt).dataset/fruit_veg_v1/: images, labels, anddata.yaml(English class names).packages.txt: system packages for OpenCV on Streamlit Cloud (libgl1,libglib2.0-0).
- Run commands from
Source_Codeso relative paths to models and dataset resolve correctly. - For GPU acceleration, install the CUDA build of PyTorch matching your CUDA toolkit.
- Keep
Documentation/at the project root for your PDF/HTML manuals when packaging for Codester.