microsoft / table-transformer

Table Transformer (TATR) is a deep learning model for extracting tables from unstructured documents (PDFs and images). This is also the official repository for the PubTables-1M dataset and GriTS evaluation metric.
MIT License
2.31k stars 256 forks source link

[Question] Table detection only #109

Closed mineshmathew closed 1 year ago

mineshmathew commented 1 year ago

I use the inference script to perform only table detection as given below

python inference.py -v -p -o  --image_dir sample_image/ --out_dir  outs/ --mode detect --detection_config_path detection_config.json --detection_model_path pubtables1m_detection_detr_r18.pth --detection_device cpu

The script runs fine but I do not see an y results in the outs directory.

robertoding commented 1 year ago

I have the same issue. No cell identified.

mineshmathew commented 1 year ago

@robertoding You can refer to this demo (see the app.py script) to get the detection results alone.