chensnathan / YOLOF

You Only Look One-level Feature (YOLOF), CVPR2021, Detectron2
MIT License
271 stars 28 forks source link

AssertionError: Attribute 'thing_dataset_id_to_contiguous_id' in the metadata of 'coco_2017_train' cannot be set to a different value! {1: 0} != {0: 0} #35

Open zkungithub opened 2 years ago

zkungithub commented 2 years ago

AssertionError: Attribute 'thing_dataset_id_to_contiguous_id' in the metadata of 'coco_2017_train' cannot be set to a different value! {1: 0} != {0: 0} 修改detectron2/data/datasets中builtin_meta.py文件,但是训练报错,是不是类别不匹配,configs/default.py文件中的类别数也改过来了。(训练一类数据集)

shenhaibb commented 2 years ago

你json文件里的类别id是从0开始还是从1开始的

zkungithub commented 2 years ago

后来这个问题解决了

发自我的iPhone

------------------ Original ------------------ From: shenhaibb @.> Date: 周日,4月 24,2022 8:46 上午 To: chensnathan/YOLOF @.> Cc: zkungithub @.>, Author @.> Subject: Re: [chensnathan/YOLOF] AssertionError: Attribute 'thing_dataset_id_to_contiguous_id' in the metadata of 'coco_2017_train' cannot be set to a different value! {1: 0} != {0: 0} (Issue #35)

你json文件里的类别id是从0开始还是从1开始的

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>