SwinTextSpotter icon indicating copy to clipboard operation
SwinTextSpotter copied to clipboard

关于rects数据集的问题

Open yxyxnrh opened this issue 2 years ago • 2 comments

你好,我想问一下,我使用rects数据集来测试demo.py的结果,发现输出的output里没有汉字,我测试totaltext上的英文数据集就有显示英文的

以下是我输入的指令:使用的model为作者您提供的rects的pth文件 python demo/demo.py --config-file projects/SWINTS/configs/SWINTS-swin-chn_finetune.yaml --input input1.jpg --output ./output --confidence-threshold 0.4 --opts MODEL.WEIGHTS ./output/rects_model_final.pth

SWINTS-swin-chn_finetune.yaml的配置: BASE: "Base-SWINTS_swin.yaml" MODEL: #WEIGHTS: "detectron2://ImageNetPretrained/torchvision/R-50.pkl" WEIGHTS: "./output/rects_model_final.pth" SWINTS: NUM_PROPOSALS: 300 NUM_CLASSES: 2 REC_HEAD: POOLER_RESOLUTION: (16,40) RESOLUTION: (32, 80) BATCH_SIZE: 128 NUM_CLASSES: 5463 DATASETS: TRAIN: ("rects",) TEST: ("totaltext_test",) SOLVER: STEPS: (140000,160000) MAX_ITER: 180000 CHECKPOINT_PERIOD: 10000 INPUT: FORMAT: "RGB"

测试的图片:rects里的测试图 input1

产生的检测结果:显示检测到了7个实例 image

output结果:输出的jpg文件无汉字 image

yxyxnrh avatar Sep 20 '22 03:09 yxyxnrh

Refer to this #47

mxin262 avatar Sep 21 '22 09:09 mxin262

Refer to this #47

thanks for your selfless help! I have solved the problem

yxyxnrh avatar Sep 23 '22 02:09 yxyxnrh