sail-sg / sewformer

140 stars 14 forks source link

KeyError: 'is_training' #3

Closed pasqualesimonetti closed 9 months ago

pasqualesimonetti commented 9 months ago
$ python inference.py -c ./configs/test.yaml -d ./assets/data/deepfashion -t deepfashion -o outputs/deepfashion
C:\Developer/sewformer/SewFactory/packages
C:\Developer/sewformer/SewFactory/packages
Traceback (most recent call last):
  File "C:\Developer\sewformer\Sewformer\inference.py", line 138, in <module>
    shape_experiment = ExperimentWrappper(config, system_info['wandb_username'])  # finished experiment
  File "C:\Developer\sewformer\Sewformer\experiment.py", line 39, in __init__
    if config['experiment']['is_training'] and self.run_local_path is not None:
KeyError: 'is_training'
Mamba-ZJP commented 9 months ago

You need to manually add key is_training: False in the config by yourself.

pasqualesimonetti commented 9 months ago

Adding is_training: False under experiment: into /Sewformer/configs/test.yaml fixes the issue.

experiment:
  is_training: False