ViTAE-Transformer / DeepSolo

The official repo for [CVPR'23] "DeepSolo: Let Transformer Decoder with Explicit Points Solo for Text Spotting" & [ArXiv'23] "DeepSolo++: Let Transformer Decoder with Explicit Points Solo for Multilingual Text Spotting"
Other
250 stars 34 forks source link

How to calculate the "bezier_pts" and "rec" in annotations #58

Open wufan-tb opened 10 months ago

wufan-tb commented 10 months ago

Hello, thanks for your great work. I wish train a model on my own dataset, yet I don't know how to generate them for I don't know how te get the "bezier_pts" and "rec" for one text instance. could you please tell me how to calculate them? Any help will be appreciated.

image

jihuan1203 commented 7 months ago

rec 采用:if self.voc_size == 37:             self.CTLABELS = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',                              't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']         elif self.vocsize == 96:             self.CTLABELS = [' ','!','"','#','$','%','&','\'','(',')','*','+',',','-','.','/',                              '0','1','2','3','4','5','6','7','8','9',':',';','<','=','>','?','@',                              'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V',                              'W','X','Y','Z','[','\',']','^','','`','a','b','c','d','e','f','g','h','i','j','k','l',                              'm','n','o','p','q','r','s','t','u','v','w','x','y','z','{','|','}','~'] bezier_pts参考ic15点生成