Code Monkey home page Code Monkey logo

pubtables-yolov5's Introduction

PubTables-1M training by YOLOv5

Firstly, download PubTables-1M dataset and put it into ./PubTables-1M.

Train and val:

# Train Detection
python train.py --batch-size -1 --data data/custom-detection.yaml --weights yolov5m.pt --img 640 --project PubTables-1M-YOLO --name yolov5m-custom-detection --hyp data/hyps/hyp.scratch-med.yaml --epochs 15 --device 0

# Val Detection
python val.py --batch-size 256 --data data/custom-detection.yaml --weights PubTables-1M-YOLO/yolov5m-custom-detection/weights/best.pt --project PubTables-1M-YOLO --name yolov5m-custom-detection-val --img 640 --task test --device 0

# Train Structure
python train.py --batch-size -1 --data data/custom-structure.yaml --weights yolov5m.pt --img 640 --project PubTables-1M-YOLO --name yolov5m-custom-structure --hyp data/hyps/hyp.scratch-med.yaml --epochs 15 --device 0

# Val Structure mAP
python val.py --batch-size 256 --data data/custom-structure.yaml --weights PubTables-1M-YOLO/yolov5m-custom-structure/weights/best.pt --img 640 --project PubTables-1M-YOLO --name yolov5m-custom-structure-val --task test --device 0

# Val Structure GriTS
python val_structure_grits.py --batch-size 256 --data data/custom-structure.yaml --weights PubTables-1M-YOLO/yolov5m-custom-structure/weights/best.pt --img 640 --project PubTables-1M-YOLO --name yolov5m-custom-structure-val --task test --conf-thres 0.25 --iou-thres 0.45 --device 0

Table Detection:

Model Schedule AP50 AP Precision Recall
YOLOv5m 15 Epochs 0.995 0.988 0.998 0.999

Table Structure Recognition:

Model Schedule AP50 AP Precision Recall GriTSTop GriTSCon GriTSLoc AccCon
YOLOv5m 15 Epochs 0.973 0.912 0.908 0.950 0.9826 0.9828 0.9751 0.8128

pubtables-yolov5's People

Contributors

bachpc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.