Closed lolipopshock closed 3 years ago
When loading Layout Parser official models, Detectron2LayoutModel can automatically detect the label_map, . For example,
Detectron2LayoutModel
model = lp.Detectron2LayoutModel("lp://HJDataset/faster_rcnn_R_50_FPN_3x/config") model.label_map # {1: 'Page Frame', ... }
Detectron2LayoutModel now supports the enforce_cpu flag that enforces using cpu even when CUDA devices are available. Inspired by #16 .
enforce_cpu
For visualization.daw_box, it now supports a show_element_type flag that shows the bbox category name on the top left corner of the layout objects.
visualization.daw_box
show_element_type
When loading Layout Parser official models,
Detectron2LayoutModel
can automatically detect the label_map, . For example,Detectron2LayoutModel
now supports theenforce_cpu
flag that enforces using cpu even when CUDA devices are available. Inspired by #16 .For
visualization.daw_box
, it now supports ashow_element_type
flag that shows the bbox category name on the top left corner of the layout objects.