Skip to content

about train progress_bar.theme.progress_bar #45

Description

@dengjia28

I tried to train SpatialNet on WHAMR! dataset:python SharedTrainer.py fit --config=configs/SpatialNet.yaml --config=configs/datasets/whamr.yaml --model.channels=[0,1] --model.arch.dim_input=4 --model.arch.dim_output=4 --model.arch.num_freqs=129 --trainer.precision=bf16-mixed --model.compile=True --data.batch_size=[2,4] --trainer.devices=0, --trainer.max_epochs=100
but I got an error:
usage: SharedTrainer.py [-h] [-c CONFIG] [--print_config[=flags]] {fit,validate,test,predict} ...
error: Validation failed: Parser key "progress_bar.theme.progress_bar":
Does not validate against any of the Union subtypes
Subtypes: [<class 'str'>, <class 'rich.style.Style'>]
Errors:
- Expected a <class 'str'>. Got value: Not a valid subclass of Style. Got value: None
Subclass types expect one of:
- a class path (str)
- a dict with class_path entry
- a dict without class_path but with init_args entry (class path given previously)
- Not a valid subclass of Style. Got value: Not a valid subclass of Style. Got value: None
Subclass types expect one of:
- a class path (str)
- a dict with class_path entry
- a dict without class_path but with init_args entry (class path given previously)
Subclass types expect one of:
- a class path (str)
- a dict with class_path entry
- a dict without class_path but with init_args entry (class path given previously)
Given value type: <class 'ValueError'>
Given value: Not a valid subclass of Style. Got value: None
Subclass types expect one of:

  • a class path (str)
  • a dict with class_path entry
  • a dict without class_path but with init_args entry (class path given previously)
    May I ask how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions