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

start_epoch called before parsing the argument #118

Open
rashadkp opened this issue Mar 18, 2024 · 2 comments
Open

start_epoch called before parsing the argument #118

rashadkp opened this issue Mar 18, 2024 · 2 comments

Comments

@rashadkp
Copy link

https://github.com/ClementPinard/FlowNetPytorch/blob/60c72a9c054e6e525eca5cc129ccafc11758d88f/main.py#L91C1-L91C7

in the line 91 ,it should be : n_iter = int(args.start_epoch)

@ClementPinard
Copy link
Owner

Actually, it should be 0, n_iter is only here for tensorflow purpose. I am surprised this does not make the code crash, since the variable start_epoch is not defined 🤔

We could probably do better by inferring the n_iter from args.start_epoch and dataset size (like len(train_set) * args.start_epoch )

@ClementPinard
Copy link
Owner

Should be solved with last commits. Please check it out ! 😎

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