scwangdyd / zero_shot_hoi

Discovering human interaction with novel objects via zero-shot learning, CVPR, 2020
MIT License
41 stars 6 forks source link

AttributeError: Attribute 'person_cls_id' does not exist in the metadata of dataset 'vcoco_train_known' #4

Closed youjiangxu closed 4 years ago

youjiangxu commented 4 years ago

hi, the published code is failed when I conduct the first-step training. It seems that the annotations are wrong.

python train_net.py --num-gpus 2 \
  --config-file configs/VCOCO/horpn_only_R_50_FPN.yaml \
  OUTPUT_DIR ./output/vcoco_horpn_only

the error is:

  File "./lib/data/datasets/vcoco.py", line 87, in load_vcoco_json
    person_cls_id = meta.person_cls_id
  File "...../envs/hoi/lib/python3.7/site-packages/detectron2/data/catalog.py",
 line 127, in __getattr__
    "keys are {}.".format(key, self.name, str(self.__dict__.keys()))
AttributeError: Attribute 'person_cls_id' does not exist in the metadata of dataset 'vcoco_train_known
'. Available keys are dict_keys(['name', 'json_file', 'image_root', 'evaluator_type', 'thing_dataset_i
d_to_contiguous_id', 'thing_classes', 'thing_colors']).
scwangdyd commented 4 years ago

Can it work now?

youjiangxu commented 4 years ago

Yes, it works. Thank you!