CoolFace
Modelpublic

PaddlePaddle/PP-DocLayout-M

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes374downloads
config.json187 linesDownload Raw Back to root
1{2    "mode": "paddle",3    "draw_threshold": 0.5,4    "metric": "COCO",5    "use_dynamic_shape": false,6    "Global": {7        "model_name": "PP-DocLayout-M"8    },9    "arch": "GFL",10    "min_subgraph_size": 3,11    "Preprocess": [12        {13            "interp": 2,14            "keep_ratio": false,15            "target_size": [16                640,17                64018            ],19            "type": "Resize"20        },21        {22            "is_scale": true,23            "mean": [24                0.485,25                0.456,26                0.40627            ],28            "std": [29                0.229,30                0.224,31                0.22532            ],33            "type": "NormalizeImage"34        },35        {36            "type": "Permute"37        }38    ],39    "label_list": [40        "paragraph_title",41        "image",42        "text",43        "number",44        "abstract",45        "content",46        "figure_title",47        "formula",48        "table",49        "table_title",50        "reference",51        "doc_title",52        "footnote",53        "header",54        "algorithm",55        "footer",56        "seal",57        "chart_title",58        "chart",59        "formula_number",60        "header_image",61        "footer_image",62        "aside_text"63    ],64    "Hpi": {65        "backend_configs": {66            "paddle_infer": {67                "trt_dynamic_shapes": {68                    "image": [69                        [70                            1,71                            3,72                            640,73                            64074                        ],75                        [76                            1,77                            3,78                            640,79                            64080                        ],81                        [82                            8,83                            3,84                            640,85                            64086                        ]87                    ],88                    "scale_factor": [89                        [90                            1,91                            292                        ],93                        [94                            1,95                            296                        ],97                        [98                            8,99                            2100                        ]101                    ]102                },103                "trt_dynamic_shape_input_data": {104                    "scale_factor": [105                        [106                            2,107                            2108                        ],109                        [110                            1,111                            1112                        ],113                        [114                            0.67,115                            0.67,116                            0.67,117                            0.67,118                            0.67,119                            0.67,120                            0.67,121                            0.67,122                            0.67,123                            0.67,124                            0.67,125                            0.67,126                            0.67,127                            0.67,128                            0.67,129                            0.67130                        ]131                    ]132                }133            },134            "tensorrt": {135                "dynamic_shapes": {136                    "image": [137                        [138                            1,139                            3,140                            640,141                            640142                        ],143                        [144                            1,145                            3,146                            640,147                            640148                        ],149                        [150                            8,151                            3,152                            640,153                            640154                        ]155                    ],156                    "scale_factor": [157                        [158                            1,159                            2160                        ],161                        [162                            1,163                            2164                        ],165                        [166                            8,167                            2168                        ]169                    ]170                }171            }172        }173    },174    "NMS": {175        "keep_top_k": 100,176        "name": "MultiClassNMS",177        "nms_threshold": 0.5,178        "nms_top_k": 1000,179        "score_threshold": 0.3180    },181    "fpn_stride": [182        8,183        16,184        32,185        64186    ]187}