Skip to content

Commit 46f8fc1

Browse files
authored
main code
update path
1 parent 09b8e34 commit 46f8fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def test(data,
250250
# Save JSON
251251
if save_json and len(jdict):
252252
w = Path(weights[0] if isinstance(weights, list) else weights).stem if weights is not None else '' # weights
253-
anno_json = '../coco/annotations/instances_val2017.json' # annotations json
253+
anno_json = './coco/annotations/instances_val2017.json' # annotations json
254254
pred_json = str(save_dir / f"{w}_predictions.json") # predictions json
255255
print('\nEvaluating pycocotools mAP... saving %s...' % pred_json)
256256
with open(pred_json, 'w') as f:

0 commit comments

Comments
 (0)