Skip to content

AttributeError: 'functools.partial' object has no attribute 'parameters' when running image_cfm lightning train #141

Description

@c0g

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions