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

AttributeError: 'DataModuleFromConfig' object has no attribute '_has_setup_TrainerFn.FITTING' #11

Open
zssdw opened this issue Jan 17, 2025 · 1 comment

Comments

@zssdw
Copy link

zssdw commented Jan 17, 2025

Hi,

I encountered the following error when running the code:

AttributeError: 'DataModuleFromConfig' object has no attribute '_has_setup_TrainerFn.FITTING'
The error occurs at the line trainer.fit(model, data) while executing the following command:

It seems that the DataModuleFromConfig class is missing the attribute _has_setup_TrainerFn.FITTING. I have checked the definition of DataModuleFromConfig but could not find the relevant method or attribute.

Could you help me understand the possible cause of this issue? Is it because the setup method in DataModuleFromConfig is not implemented correctly?

Also, I would appreciate any advice on how to properly configure the DataModule to avoid this error.

Thank you for your help!

@srikarym
Copy link
Collaborator

It may be an issue with Pytorch lightning. We use version 1.5.4

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