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

AttributeError: 'RandomSampler' object has no attribute 'set_epoch' #31

Open
duzongdong opened this issue Oct 11, 2023 · 2 comments
Open

Comments

@duzongdong
Copy link

Hello, I have the following problem during training: train 171line AttributeError: 'RandomSampler' object has no attribute 'set_epoch'

@Gne-biginner
Copy link

I have the same problerm.

@HITysx
Copy link

HITysx commented Oct 4, 2024

If you use single GPU rather than distributed method, just need to delete it. RandomSampler.set_epoch is only used for distributed training!

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