# DBNET **Repository Path**: fox1986487/dbnet ## Basic Information - **Project Name**: DBNET - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 中文检测DBNet This repo provides training and demo code of DBnet text detection on Chinese characters. ## Data Preparation Training data: prepare a text `train.txt` in the following format, use '\t' as a separator ``` ./datasets/train/img/001.jpg ./datasets/train/gt/001.txt ``` Validation data: prepare a text `test.txt` in the following format, use '\t' as a separator ``` ./datasets/test/img/001.jpg ./datasets/test/gt/001.txt ``` - Store images in the `img` folder - Store groundtruth in the `gt` folder The groundtruth can be `.txt` files, with the following format: ``` x1, y1, x2, y2, x3, y3, x4, y4, annotation ``` ## Train Simply run: ``` ./single_gpu_train.sh ``` This will train on ICPR dataset. ## Demo We have a quick demo to visualize detection result: ``` python3 demo.py --model_path output/DBNet_resnet18_FPN_DBHead/checkpoint/model_best.pth --data ./imgs/ ``` The pretrained model can be download from manaai.cn.