> Traceback (most recent call last):


 "translate.py", line 135, in <module>

main()


 "translate.py", line 62, in main

translator = onmt.Translator(opt)


 "\~/OpenNMT-py/onmt/Translator.py", line 26, in __init__

model.load_state_dict(checkpoint['model'])


 "\~/anaconda2/lib/python2.7/site-packages/torch/nn/modules/module.py", line 328, in load_state_dict

for name, param in state_dict.items():


 "\~/anaconda2/lib/python2.7/site-packages/torch/nn/modules/module.py", line 238, in \__getattr\__

type(self).\__name\__, name))
AttributeError: 'NMTModel' object has no attribute 'items'

Traceback (most recent call last):


 "video_test_t8v2.py", line 245, in <module>

evaluator = COCOEvaluator("wurenji_val", cfg, False, output_dir="./output/faster_rcnn_R_50_C4/")


 "/home/yuwentao/ml_test/detectron2/detectron2/evaluation/coco_evaluation.py", line 68, in __init__

convert_to_coco_json(dataset_name, cache_path)


 "/home/yuwentao/ml_test/detectron2/detectron2/data/datasets/coco.py", line 407, in convert_to_coco_json

coco_dict = convert_to_coco_dict(dataset_name)


 "/home/yuwentao/ml_test/detectron2/detectron2/data/datasets/coco.py", line 294, in convert_to_coco_dict

for id, name in enumerate(MetadataCatalog.get(dataset_name).thing_classes)


 "/home/yuwentao/ml_test/detectron2/detectron2/data/catalog.py", line 119, in __getattr__

key, self.name, str(self.__dict__.keys())
AttributeError: Attribute 'thing_classes' does not exist in the metadata of 'wurenji_val'. Available keys are dict_keys(['name', 'thing_class', 'json_file']).
