cvevals
cvevals copied to clipboard
evaluator fix
Description
- Inside the Evaluator class constructor a
KeyErrorException was raised when instantiatinggtarray because keys insideground_thruthdictionary were absolute paths of images and the access was attempted using only the filename retrieved withkey.split("/")[-1](evaluator.py:59) - Restored previous allocation of
merged_datadictionary because anAttributeErrorexception was raised when instructiongts = [list(item) for item in gt.xyxy]was executed, this because the gt object does not have an attribute named xyxy. That attribute exists in thepredictionsobject
Comments left for in place explanations.
Type of change
Please delete options that are not relevant.
- [X ] Bug fix (non-breaking change which fixes an issue)
How has this change been tested, please provide a testcase or example of how you tested the change?
Execution of roboflow_example.py script against a YOLOv5 PyTorch (txt) dataset.
Docs
- [X] Docs updated? Description of model_type CLI parameter and link to example