TISC-Net: Towards the in-situ Trunk Identification and Length Measurement of Sea Cucumbers via Bezier Curve Modelling
- 🔭 I’m currently working on something cool.
You need to install Ultralytics and configure your environment according to YOLOv8's official procedures.
Pip install the ultralytics package including all requirements in a Python>=3.8 environment with PyTorch>=1.8.
pip install ultralytics
Name | Params(M) | download DUO | download ISTI |
---|---|---|---|
TISC-Net-m | 26.4 | DUO_model | ISTI_model |
TISC-Net-xP6 | 99.3 | DUO_model | ISTI_model |
You need to prepare datasets for following training and testing activities. Datasets
- Pick a model and its config file, for example,
yolov8-pose-FEE.yaml
. - Download the model m_DUO.pt
- Run the "test.py".
model = YOLO('/data/m_DUO.pt')
img_path = 'fig/2258.jpg'
- You need to replace the address of the model and images.
To train a model with "train.py", first prepare the custom dataset and set up the corresponding dataset yaml file sc_DUO-pose.yaml, then run "train.py":
from ultralytics import YOLO
# Load a model
model = YOLO('yolov8m-pose-FEE.yaml') # build a new model from YAML
# Train the model
model.train(data='sc_DUO-pose.yaml', epochs=100, imgsz=640, device = 3, batch = 32 )
metrics = model.val() # evaluate model performance on the validation set
metrics.box.map # map50-95
metrics.box.map50 # map50
metrics.box.map75 # map75
metrics.box.maps # a list con