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

What is the difference between Stage 2 and Stage 3? #13

Closed
longmalongma opened this issue Jul 8, 2021 · 2 comments
Closed

What is the difference between Stage 2 and Stage 3? #13

longmalongma opened this issue Jul 8, 2021 · 2 comments

Comments

@longmalongma
Copy link

image

What is the difference between Stage 2 and Stage 3? Do I need to execute --stage 3 after --stage 2?

@hkchengrex
Copy link
Owner

0 -> 1 -> 2 = With BL30K
0 -> 3 = Without BL30K

STCN/util/hyper_para.py

Lines 67 to 80 in 5f11ad4

elif self.args['stage'] == 2:
# 300K main training for after BL30K
self.args['lr'] = none_or_default(self.args['lr'], 1e-5)
self.args['batch_size'] = none_or_default(self.args['batch_size'], 4)
self.args['iterations'] = none_or_default(self.args['iterations'], 300000)
self.args['steps'] = none_or_default(self.args['steps'], [250000])
self.args['single_object'] = False
elif self.args['stage'] == 3:
# 150K main training for after static image pretraining
self.args['lr'] = none_or_default(self.args['lr'], 1e-5)
self.args['batch_size'] = none_or_default(self.args['batch_size'], 4)
self.args['iterations'] = none_or_default(self.args['iterations'], 150000)
self.args['steps'] = none_or_default(self.args['steps'], [125000])
self.args['single_object'] = False

@longmalongma
Copy link
Author

0 -> 1 -> 2 = With BL30K
0 -> 3 = Without BL30K

STCN/util/hyper_para.py

Lines 67 to 80 in 5f11ad4

elif self.args['stage'] == 2:
# 300K main training for after BL30K
self.args['lr'] = none_or_default(self.args['lr'], 1e-5)
self.args['batch_size'] = none_or_default(self.args['batch_size'], 4)
self.args['iterations'] = none_or_default(self.args['iterations'], 300000)
self.args['steps'] = none_or_default(self.args['steps'], [250000])
self.args['single_object'] = False
elif self.args['stage'] == 3:
# 150K main training for after static image pretraining
self.args['lr'] = none_or_default(self.args['lr'], 1e-5)
self.args['batch_size'] = none_or_default(self.args['batch_size'], 4)
self.args['iterations'] = none_or_default(self.args['iterations'], 150000)
self.args['steps'] = none_or_default(self.args['steps'], [125000])
self.args['single_object'] = False

Ok, thanks, I got it1

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