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

Question about Dataloader #12

Open
zengkaiwei opened this issue Oct 5, 2019 · 5 comments
Open

Question about Dataloader #12

zengkaiwei opened this issue Oct 5, 2019 · 5 comments

Comments

@zengkaiwei
Copy link

zengkaiwei commented Oct 5, 2019

in your selftrain.py, the len(dataloader) is about 20 (each iteration len(dataloader) and len(images)is a little different)and the training is very fast. It seems that you choose a part of image to train. But according to len(dataloader) = len(images)/batchsize.
For example, in duke2maket,in selftrain.py
iteration 2 have 10105 training images, but the len(dataloader) is 18128(batch is 128)
iteration 28 have 12285 images, but the len(dataloader) is 14
128
it seems like len(dataloader) and len(images) are not strictly linearly, I suspect len(dataloader) is relation to both len(images) and num_ids. But I don't know why?

@zengkaiwei zengkaiwei reopened this Oct 5, 2019
@zengkaiwei zengkaiwei changed the title QuestionRandomIdentitySampler Question about RandomIdentitySampler Oct 5, 2019
@zengkaiwei zengkaiwei changed the title Question about RandomIdentitySampler Question about Dataloader Oct 5, 2019
@lsongx
Copy link
Owner

lsongx commented Oct 5, 2019

Hi @zengkaiwei , we use PK sampling for triplet loss. Please see https://github.com/LcDog/DomainAdaptiveReID/blob/d078d4cc3de951f4e680e613e504664a9befb7a4/reid/utils/data/sampler.py#L11 for more details.

@zengkaiwei
Copy link
Author

zengkaiwei commented Oct 6, 2019 via email

@lsongx
Copy link
Owner

lsongx commented Oct 11, 2019

@zengkaiwei 我们follow的是 https://arxiv.org/pdf/1703.07737.pdf 中介绍的方法. 请参考文中3.5的Batch Generation and Augmentation.

@zengkaiwei
Copy link
Author

可以给我一个msmt17_V1 tar.gz的链接吗,官网已经关闭了

@lsongx
Copy link
Owner

lsongx commented Oct 27, 2019

@zengkaiwei 可以发邮件联系原作者要

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

2 participants