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

@anxiangsir anxiangsir force-pushed the master branch 5 times, most recently from e391616 to 760d6de Compare January 6, 2021 06:02
@anxiangsir anxiangsir force-pushed the master branch 10 times, most recently from 3c5e7bc to fa9afd0 Compare January 13, 2021 11:38
@anxiangsir anxiangsir force-pushed the master branch 11 times, most recently from 15bda16 to 88b0739 Compare March 12, 2021 13:29
@anxiangsir anxiangsir force-pushed the master branch 2 times, most recently from 3ac9afa to 8999b4a Compare May 14, 2021 12:00
@anxiangsir anxiangsir force-pushed the master branch 2 times, most recently from 5f1c233 to e1300d3 Compare June 23, 2021 05:55
@anxiangsir anxiangsir force-pushed the master branch 6 times, most recently from c982e3c to 9ff1f80 Compare March 30, 2022 11:03
@anxiangsir anxiangsir force-pushed the master branch 5 times, most recently from 93e2886 to d9cb10e Compare April 22, 2022 10:24
@anxiangsir anxiangsir force-pushed the master branch 3 times, most recently from 44bfb51 to 92c6bd9 Compare May 2, 2022 07:51
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.

1 participant