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

关于一个epoch中的step数目 #28

Open
xxx2974 opened this issue Feb 26, 2019 · 2 comments
Open

关于一个epoch中的step数目 #28

xxx2974 opened this issue Feb 26, 2019 · 2 comments

Comments

@xxx2974
Copy link

xxx2974 commented Feb 26, 2019

你好,我想请教一下:关于一个epoch中的step数目 。假如--ids_per_batch=32,--ims_per_id=4,那么就意味着一个batch的大小是128,参与训练的数据大小是12936,那么一个epoch是不是应该包含101或者102个step吗?为什么我输出了一下一个epoch中step的个数只有23个呢?是我的理解有问题,还是我哪里弄错了呢?谢谢!

@Yitian-Li
Copy link

market1501中,训练集有751个人;然后ids_per_batch=32,所以一个epoch就是751/32=24,应该是从0开始数,就是23

@huanghoujing
Copy link
Owner

是的,就是Yitian这样解释的。一个epoch在这份代码里指的是把所有id遍历一遍。一个batch会用到32个id,那么总共751个id需要23.46875个batch。

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

No branches or pull requests

3 participants