Experimenting Yolov5 segmentation evaluation with prediction saved txt files as input #13288
yuewang199511
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am running an experience to save the predictions as txt files and then use (almost) the same logic in evaluation task to compare the ground truth with them.
I have made the revised evaluation code running successfully the ground truth vs ground truth seems fine, but found some problems that make me wonder.
I found there are two problems:
The revised code is attached below and here are the commands you can reproduce the process:
get prediction labels saved
python3 segment/predict.py --weights yolov5s-seg.pt --data coco128-seg.yaml --save-txt --save-conf
get evaluation result
'python segment/val.py --weights yolov5s-seg.pt --data coco128-seg.yaml --verbose'
get the evaluation result from labels and predictions
python3 evaluation_seg.py {annotated dataset dir} {predicted labels dir} {dir to save evaluation graphs later}
Beta Was this translation helpful? Give feedback.
All reactions