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: 'functools.partial' object has no attribute 'parameters' when running image_cfm lightning train #141

Open
c0g opened this issue Oct 25, 2024 · 0 comments

Comments

@c0g
Copy link

c0g commented Oct 25, 2024

Trying to run python src/train.py trainer=gpu +trainer.precision=16 experiment=image_cfm from runner, it seems like model is a partial at conditional-flow-matching/runner/src/utils/utils.py, line 152. I tried calling the function to initialize the model but it says:

*** TypeError: CFMLitModule.__init__() missing 1 required positional argument: 'datamodule'

I then tried passing python src/train.py trainer=gpu +trainer.precision=16 experiment=image_cfm datamodule=cifar but same problem, sadly.

I'd expect this to work due to the following lines in the runner's readme:

Train model with chosen experiment configuration from configs/experiment/
python src/train.py experiment=experiment_name

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