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

把代码修改了在python3.5上跑,基础模型rank-1不超过50%? #24

Open
qianjinhao opened this issue Oct 9, 2019 · 3 comments

Comments

@qianjinhao
Copy link

把代码修改了在python3.5上跑,基础模型rank-1不超过50%?

@wenjie710
Copy link

代码写错了吧。。。我跑没问题啊

@yufuhuang
Copy link

sampler should be an instance of torch.utils.data.Sampler, but got sampler=<samplers.RandomIdentitySampler object at 0x0000026A98DCB0F0>
我的怎么报这个错误。怎么回事呢?弄了好久没解决,向你请教一下,谢谢啦

@CrazyuserNova
Copy link

sampler should be an instance of torch.utils.data.Sampler, but got sampler=<samplers.RandomIdentitySampler object at 0x0000026A98DCB0F0>
我的怎么报这个错误。怎么回事呢?弄了好久没解决,向你请教一下,谢谢啦

我也遇到了相同的问题,我是这样解决的:在samplers.py 文件加入 from torch.utils.data.sampler import Sampler,让RandomIdentitySampler类继承Sampler

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

4 participants