Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dali image iterator for arcface #1339

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ShiquanYu
Copy link
Contributor

nvidia-dali 从入门到放弃

安装

参考例程

转换训练数据

因为原始的数据头尾都带有一些信息,无法用作训练,暂时还不知道咋用 dali 把头尾数据解析出来,就直接暴力去掉了。

  • 修改文件 dali_convert_rec.py (见附件)内参数: path_imgrec path_rec path_idx, 然后运行:

    python dali_convert_rec.py

测试

  • 修改文件 recognition/ArcFace/dali_image_iter.py 内参数 path_imgrec 路径后, 运行该文件:

    $ python dali_image_iter.py
  • 只增加了随机镜像的增强方式,SSD 速度约 18000 samples/s,HHD 速度约 8000 samples/s。

附件

dali_convert_rec.py.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant