Skip to content

Commit 617836c

Browse files
authored
COCO.loadRes: also copy the info dict to the results (#26)
1 parent fe9ba85 commit 617836c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PythonAPI/pycocotools/coco.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ def loadRes(self, resFile):
311311
:return: res (obj) : result api object
312312
"""
313313
res = COCO()
314+
res.dataset['info'] = copy.deepcopy(self.dataset['info'])
314315
res.dataset['images'] = [img for img in self.dataset['images']]
315316

316317
print('Loading and preparing results...')

0 commit comments

Comments
 (0)