https://github.com/hpanwar08/document-layout-analysis-app
Simple docker deployment of document layout analysis using detectron2
https://github.com/hpanwar08/document-layout-analysis-app
docker document-layout-analysis python reactjs
Last synced: 10 months ago
JSON representation
Simple docker deployment of document layout analysis using detectron2
- Host: GitHub
- URL: https://github.com/hpanwar08/document-layout-analysis-app
- Owner: hpanwar08
- License: mit
- Created: 2020-09-22T15:05:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-07T09:52:43.000Z (over 4 years ago)
- Last Synced: 2024-11-16T18:34:10.389Z (over 1 year ago)
- Topics: docker, document-layout-analysis, python, reactjs
- Language: JavaScript
- Homepage:
- Size: 176 KB
- Stars: 20
- Watchers: 2
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Document Layout Analysis App
Simple docker deployment of document layout analysis using detectron2. Trained on Publaynet dataset.
### Backend is built in Flask
### Frontend is built in React
### Steps to build
* Run `docker-compose up --build` from the main folder
* Mask RCNN R101 will be auto downloaded
* Type `localhost:3000` in browser and upload and image
### (Optional) To use model other than Mask RCNN R101
* Download pre-trained model refered in https://github.com/hpanwar08/detectron2 (default Resnet101 model can be downloaded from [MaskRCNN Resnet101 FPN 3X](https://www.dropbox.com/sh/wgt9skz67usliei/AAD9n6qbsyMz1Y3CwpZpHXCpa?dl=0) )
* Copy the downloaded model in `backend` folder
* Download config yaml refered in https://github.com/hpanwar08/detectron2 (default Resnet101 config yaml is already present in `backend` folder)
* Copy the downloaded config yaml in `backend` folder
* Update the `model_config.yaml` file with model file name and config yaml file name (not required if using default values)
* Run `docker-compose up --build` from the main folder
* Type `localhost:3000` in browser and upload and image
Note: It takes time to build the image
|
|
|
|---------------------------------------------------------------------------|---------------------------------------------------------------------------|