mindspore-lab / mindcv

A toolbox of vision models and algorithms based on MindSpore
https://mindspore-lab.github.io/mindcv/
Apache License 2.0
230 stars 139 forks source link

fix bugs: fix some bugs in loading data #774

Closed Hsiayukoo closed 4 months ago

Hsiayukoo commented 4 months ago

(1)use with open() rather than open() (2)use meaningful variables (3)fix some deep copy problems

Thank you for your contribution to the MindCV repo. Before submitting this PR, please make sure:

Motivation

修改了以下问题:

  1. 参数意义不明确 image

  2. open 之后没有关闭 image

  3. 构造函数缺少传参,images_dir 地址拼写错误 image

  4. 深浅拷贝问题 最后读取后的数据每一个标签都关联上了所有的样本。

Test Plan

(How should this PR be tested? Do you require special setup to run the test or repro the fixed bug?)

Related Issues and PRs

(Is this PR part of a group of changes? Link the other relevant PRs and Issues here. Use https://help.github.com/en/articles/closing-issues-using-keywords for help on GitHub syntax)