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

total_steps in train.py #2

Open
JJJYmmm opened this issue Nov 8, 2023 · 1 comment
Open

total_steps in train.py #2

JJJYmmm opened this issue Nov 8, 2023 · 1 comment

Comments

@JJJYmmm
Copy link

JJJYmmm commented Nov 8, 2023

There seems to be a problem in train.py.

total_steps = (len(trainloader) // args.batch_size + 1)  * args.epoches

len(train_loader) is already divided by batch_size. Change it to total_steps = len(trainloader) * args.epoches and it should work!

@llsshhQaQ
Copy link

模型用到vit预处理了么?

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