main code
update path
This commit is contained in:
parent
09b8e34ae5
commit
46f8fc17d9
2
test.py
2
test.py
@ -250,7 +250,7 @@ def test(data,
|
|||||||
# Save JSON
|
# Save JSON
|
||||||
if save_json and len(jdict):
|
if save_json and len(jdict):
|
||||||
w = Path(weights[0] if isinstance(weights, list) else weights).stem if weights is not None else '' # weights
|
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
|
pred_json = str(save_dir / f"{w}_predictions.json") # predictions json
|
||||||
print('\nEvaluating pycocotools mAP... saving %s...' % pred_json)
|
print('\nEvaluating pycocotools mAP... saving %s...' % pred_json)
|
||||||
with open(pred_json, 'w') as f:
|
with open(pred_json, 'w') as f:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user