opendatalab / DocLayout-YOLO

DocLayout-YOLO: Enhancing Document Layout Analysis through Diverse Synthetic Data and Global-to-Local Adaptive Perception
https://huggingface.co/spaces/opendatalab/DocLayout-YOLO
GNU Affero General Public License v3.0
140 stars 8 forks source link

about label.yaml #7

Closed lvpeng159 closed 1 day ago

lvpeng159 commented 1 day ago

i use the “doclayout_yolo_docstructbench_imgsz1024.pt” weight file,does this project have a cls.yaml file for this weight file to show all the classes? maybe it exists,i just can‘t find it. :)

JulioZhao97 commented 1 day ago

The classes to id mapping is as follows:

id_to_names = {
    0: 'title', 
    1: 'plain text',
    2: 'abandon', 
    3: 'figure', 
    4: 'figure_caption', 
    5: 'table', 
    6: 'table_caption', 
    7: 'table_footnote', 
    8: 'isolate_formula', 
    9: 'formula_caption'
}
JulioZhao97 commented 1 day ago

If there are any other questions, feel free to let me know!

lvpeng159 commented 1 day ago

If there are any other questions, feel free to let me know!

ok,Thank you for your reply response.:)