“jsondecode”在Coco数据集中表现不佳?

36意见(过去30天)
崔
在2021年8月5日10:09
评论: rik. 于2021年8月9日7:21
我试图从中导入数据注释文件 Coco2017 使用“jsondecode”需要大约半分钟,而Coco-API只需要大约15秒,可以在将来的版本中显着提供“JSondecode”的性能?
R2021a运行,
Cocodir =.'Coco2017 /';
Annfile ='annotations_trainval2017 \ annotations \ instances_train2017.json';
Annfile = Fullfile(Cocodir,Annfile);
数据= fileread(Annfile);
Tic.
data = jsondecode(数据);
TOC.
经过时间是31.671089秒。
Cocodir =.'Coco2017 /';
Annfile ='annotations_trainval2017 \ annotations \ instances_train2017.json';
Annfile = Fullfile(Cocodir,Annfile);
Tic.
可可= CocoApi (annFile);
TOC.
经过时间为15.598371秒。
4评论
rik.
rik. 于2021年8月9日7:21
@cui 你能回答一下吗?

登录评论。

答案(0)

s manbetx 845


释放

R2021A

社区宝藏狩猎

找到Matlab Central中的宝藏,并发现社区如何帮助您!

开始狩猎!