Skip to content

Commit

Permalink
main code
Browse files Browse the repository at this point in the history
update path
  • Loading branch information
WongKinYiu authored Jul 11, 2022
1 parent 09b8e34 commit 46f8fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def test(data,
# Save JSON
if save_json and len(jdict):
w = Path(weights[0] if isinstance(weights, list) else weights).stem if weights is not None else '' # weights
anno_json = '../coco/annotations/instances_val2017.json' # annotations json
anno_json = './coco/annotations/instances_val2017.json' # annotations json
pred_json = str(save_dir / f"{w}_predictions.json") # predictions json
print('\nEvaluating pycocotools mAP... saving %s...' % pred_json)
with open(pred_json, 'w') as f:
Expand Down

0 comments on commit 46f8fc1

Please sign in to comment.