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

Unable to access dict Attributes in train/data/base.py and train/model/base.py #205

Closed
sjhend03 opened this issue Jul 5, 2024 · 2 comments

Comments

@sjhend03
Copy link
Contributor

sjhend03 commented Jul 5, 2024

In aframev2/projects/train/train/data/base.py and aframev2/train/train/model/base.py instances of self.hparams.{attribute} caused AttributeErrors with errors similar to,

AttributeError: 'AttributeDict' object has no attribute 'data_dir' 

It started to work by changing all instances of self.hparams.{attribute} to self.hparams.init_args["{attribute}"]

@EthanMarx
Copy link
Contributor

EthanMarx commented Jul 6, 2024

Hey @sjhend03 I encountered this too. Turns out it was a bug with pytorch lightning. (see here).

I should have already fixed this in the train project by constraining lightning to <2.3.0.

So, try re-building your train container and try again.

@EthanMarx
Copy link
Contributor

@sjhend03 going to close this but feel free to reopen if issue persists for whatever reason

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