Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

AttributeError: 'Config' object has no attribute 'output_eval_dir' #5

@innopeak-zhangsihao-yang

Description

After training the model, I want to evaluate the model with command python eval.py. I receive the error above.
The full output is:

>>> Using GPU: 0
========== Loading data... ========== 
Reading images and annotations...
Collecting input batch...
========== Preparing LASSIE model... ========== 
Using cache found in /home/sxxxxxx/.cache/torch/hub/facebookresearch_dino_main
========== Keypoint transfer evaluation... ========== 
PCK=0.8331
Traceback (most recent call last):
  File "/workspace_projects/projects/articulated_shapes/lassie/main/eval.py", line 90, in <module>
    eval_model()
  File "/workspace_projects/projects/articulated_shapes/lassie/main/eval.py", line 72, in eval_model
    with open(osp.join(cfg.output_eval_dir, '%s.txt'%cfg.animal_class) ,'w') as f:
AttributeError: 'Config' object has no attribute 'output_eval_dir'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions