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

a typo in run.py line 479? #59

Open
sayoriaaa opened this issue Mar 24, 2023 · 1 comment
Open

a typo in run.py line 479? #59

sayoriaaa opened this issue Mar 24, 2023 · 1 comment

Comments

@sayoriaaa
Copy link

Nice work. I am trying to read your code to implement it on paddle. but i notice something weird in run.py line 479, where you wrote if global_step<cfg_train.tv_before and global_step>cfg_train.tv_after and global_step%cfg_train.tv_every==0: . i think it will not do tv regulation while training

did you mean if global_step<cfg_train.tv_before or global_step>cfg_train.tv_after and global_step%cfg_train.tv_every==0:, or i take this the wrong way``

@gkouros
Copy link

gkouros commented Jul 12, 2023

I think the "or" was intentional to allow for cases of applying tv by setting only one of these variables (tv_before, tv_after) instead of both or for allowing tv before a certain point and after a certain point (discontinuous intervals [0, tv_before] + [tv_after, N_iters]). If you use "and", you can only apply TV for the iterations in the range [tv_after, tv_before].

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