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

Missing key dense: model.dense #1

Open
Ting-Devin-Han opened this issue Nov 23, 2024 · 0 comments
Open

Missing key dense: model.dense #1

Ting-Devin-Han opened this issue Nov 23, 2024 · 0 comments

Comments

@Ting-Devin-Han
Copy link

Hi, I tried running the code but encountered an error.

Traceback (most recent call last):
File "/home/.conda/envs/delflow/lib/python3.10/site-packages/torch/multiprocessing/spawn.py", line 68, in _wrap
fn(i, *args)
File "/home/DELFlow/train.py", line 267, in create_trainer
trainer = Trainer(device, cfgs)
File "/home/DELFlow/train.py", line 122, in init
self.model = CamLiPWC(self.cfgs.model)
File "/home/DELFlow/models/camlipwc.py", line 13, in init
self.dense = cfgs.dense
File "/home/.conda/envs/delflow/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 353, in getattr
self._format_and_raise(
File "/home/.conda/envs/delflow/lib/python3.10/site-packages/omegaconf/base.py", line 190, in _format_and_raise
format_and_raise(
File "/home/.conda/envs/delflow/lib/python3.10/site-packages/omegaconf/_utils.py", line 821, in format_and_raise
_raise(ex, cause)
File "/home/.conda/envs/delflow/lib/python3.10/site-packages/omegaconf/_utils.py", line 719, in _raise
raise ex.with_traceback(sys.exc_info()[2]) # set end OC_CAUSE=1 for full backtrace
File "/home/.conda/envs/delflow/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 351, in getattr
return self._get_impl(key=key, default_value=DEFAULT_MARKER)
File "/home/.conda/envs/delflow/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 438, in _get_impl
node = self._get_node(key=key, throw_on_missing_key=True)
File "/home/.conda/envs/delflow/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 470, in _get_node
raise ConfigKeyError(f"Missing key {key}")
omegaconf.errors.ConfigAttributeError: Missing key dense
full_key: model.dense
object_type=dict

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

1 participant