This commit is contained in:
Glenn Jocher 2019-02-26 15:00:27 +01:00
parent cb63ce30ec
commit 57417e7080
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ def test(
for di, d in enumerate(detections):
jdict.append({
'image_id': int(Path(paths[si]).stem.split('_')[-1]),
'category_id': coco91class(int(d[6])),
'category_id': coco91class[int(d[6])],
'bbox': [float3(x) for x in box[di]],
'score': float3(d[4] * d[5])
})

View File

@ -7,7 +7,7 @@ bash yolov3/data/get_coco_dataset.sh
# Start
sudo rm -rf yolov3 && git clone https://github.com/ultralytics/yolov3
sudo rm -rf cocoapi && git clone https://github.com/cocodataset/cocoapi && cd cocoapi/PythonAPI && make && cd ../.. && cp -r cocoapi/PythonAPI/pycocotools yolov3
cd yolov3 && python3 test.py --coco-map
cd yolov3 && python3 test.py --save-json
# Resume
python3 train.py --resume