We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eb9fa8 commit 5a1816dCopy full SHA for 5a1816d
PythonAPI/pycocotools/coco.py
@@ -311,7 +311,7 @@ def loadRes(self, resFile):
311
:return: res (obj) : result api object
312
"""
313
res = COCO()
314
- res.dataset['info'] = copy.deepcopy(self.dataset['info'])
+ res.dataset['info'] = copy.deepcopy(self.dataset.get('info', {}))
315
res.dataset['images'] = [img for img in self.dataset['images']]
316
317
print('Loading and preparing results...')
0 commit comments