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

Flag --base_folder must have a value other than None. #50

Closed
joiellantero opened this issue Mar 9, 2022 · 4 comments
Closed

Flag --base_folder must have a value other than None. #50

joiellantero opened this issue Mar 9, 2022 · 4 comments

Comments

@joiellantero
Copy link

I encountered this issue when I ran python train.py --data_dir $DATASET_PATH --base_folder $EXPERIMENT_PATH --gin_configs configs/test_vrig.gin. Below is the error log. What can I try to solve this? Thanks!

Traceback (most recent call last):
  File "train.py", line 54, in <module>
    jax.config.parse_flags_with_absl()
  File "/home/jllantero/miniconda3/envs/nerfies/lib/python3.8/site-packages/jax/_src/config.py", line 161, in parse_flags_with_absl
    absl.flags.FLAGS(jax_argv, known_only=True)
  File "/home/jllantero/miniconda3/envs/nerfies/lib/python3.8/site-packages/absl/flags/_flagvalues.py", line 673, in __call__
    self.validate_all_flags()
  File "/home/jllantero/miniconda3/envs/nerfies/lib/python3.8/site-packages/absl/flags/_flagvalues.py", line 533, in validate_all_flags
    self._assert_validators(all_validators)
  File "/home/jllantero/miniconda3/envs/nerfies/lib/python3.8/site-packages/absl/flags/_flagvalues.py", line 568, in _assert_validators
    raise _exceptions.IllegalFlagValueError('\n'.join(messages))
absl.flags._exceptions.IllegalFlagValueError: flag --base_folder=None: Flag --base_folder must have a value other than None.
@zhengxyun
Copy link

I got the same error message while training. Have you solved?

@asinghka
Copy link

Same issue here. Any solutions yet?

@xh-liu-tech
Copy link

Just replacing the None in train.py (46) with an arbitrary value fixes the problem for me.

flags.DEFINE_string('base_folder', 'base_folder', 'where to store ckpts and logs')

@joiellantero
Copy link
Author

Just replacing the None in train.py (46) with an arbitrary value fixes the problem for me.

flags.DEFINE_string('base_folder', 'base_folder', 'where to store ckpts and logs')

This solved the issue, thank you!

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

4 participants