Commit f1506916 authored by sugon_cxj's avatar sugon_cxj
Browse files

first commit

parent 55c28ed5
Pipeline #266 canceled with stages
00006737.jpg [{"transcription": "PASS", "points": [[650, 17], [820, 15], [821, 56], [651, 58]]}, {"transcription": "登机牌", "points": [[157, 27], [354, 25], [354, 69], [158, 71]]}, {"transcription": "BOARDING", "points": [[423, 25], [661, 19], [662, 57], [423, 63]]}, {"transcription": "DATE", "points": [[266, 109], [316, 109], [316, 126], [266, 126]]}, {"transcription": "舱位", "points": [[341, 106], [384, 104], [385, 125], [342, 127]]}, {"transcription": "CLASS", "points": [[400, 107], [456, 105], [457, 123], [401, 125]]}, {"transcription": "序号SERIALNO.", "points": [[488, 104], [654, 101], [655, 122], [489, 125]]}, {"transcription": "座位号", "points": [[677, 100], [737, 98], [738, 118], [678, 121]]}, {"transcription": "SEAT NO", "points": [[754, 100], [832, 96], [833, 114], [754, 117]]}, {"transcription": "航班", "points": [[66, 113], [108, 113], [108, 132], [66, 132]]}, {"transcription": "FLIGHT", "points": [[120, 112], [191, 112], [191, 129], [120, 129]]}, {"transcription": "日期", "points": [[216, 110], [257, 110], [257, 127], [216, 127]]}, {"transcription": "W", "points": [[406, 134], [430, 134], [430, 157], [406, 157]]}, {"transcription": "035", "points": [[512, 131], [568, 131], [568, 154], [512, 154]]}, {"transcription": "MU.2379", "points": [[83, 142], [217, 139], [217, 159], [84, 161]]}, {"transcription": "O3DEC", "points": [[206, 139], [325, 137], [326, 157], [207, 159]]}, {"transcription": "始发地", "points": [[344, 177], [406, 175], [407, 195], [345, 196]]}, {"transcription": "FROM", "points": [[421, 176], [468, 176], [468, 192], [421, 192]]}, {"transcription": "登机口", "points": [[491, 175], [552, 175], [552, 195], [491, 195]]}, {"transcription": "GATE", "points": [[567, 175], [613, 173], [614, 191], [568, 193]]}, {"transcription": "登机时间", "points": [[679, 172], [767, 169], [767, 188], [679, 191]]}, {"transcription": "BDT", "points": [[776, 169], [809, 169], [809, 188], [776, 188]]}, {"transcription": "目的地TO", "points": [[68, 182], [167, 178], [168, 198], [69, 202]]}, {"transcription": "福州", "points": [[98, 209], [167, 206], [168, 227], [99, 229]]}, {"transcription": "TATYUAN", "points": [[339, 220], [473, 217], [473, 236], [340, 239]]}, {"transcription": "C11", "points": [[508, 216], [553, 216], [553, 234], [508, 234]]}, {"transcription": "FUZHOU", "points": [[90, 231], [202, 227], [202, 248], [91, 252]]}, {"transcription": "身份识别IDNO", "points": [[346, 241], [481, 237], [482, 255], [347, 259]]}, {"transcription": "姓名NAME", "points": [[69, 251], [172, 250], [172, 269], [69, 270]]}, {"transcription": "ZHANGQIWET", "points": [[77, 279], [262, 275], [263, 295], [77, 298]]}, {"transcription": "票号TKTNO", "points": [[463, 298], [578, 296], [578, 316], [464, 317]]}, {"transcription": "张祺伟", "points": [[103, 315], [207, 311], [208, 333], [104, 337]]}, {"transcription": "票价 FARE", "points": [[71, 345], [165, 343], [165, 363], [71, 364]]}, {"transcription": "ETKT7813699238489/1", "points": [[346, 349], [661, 347], [661, 366], [346, 368]]}, {"transcription": "登机口于起飞前10分钟关闭", "points": [[103, 459], [344, 455], [345, 472], [103, 476]]}, {"transcription": "GATESCLOSE 1O MINUTES BEFORE DEPARTURE TIME", "points": [[359, 455], [830, 445], [830, 461], [359, 471]]}]
00009282.jpg [{"transcription": "Meters/bonwe", "points": [[89, 57], [254, 60], [254, 78], [89, 76]]}, {"transcription": "洗涤说明", "points": [[121, 84], [221, 85], [221, 106], [121, 105]]}, {"transcription": "最高洗涤温度30C", "points": [[110, 113], [226, 113], [226, 126], [110, 126]]}, {"transcription": "常规程序", "points": [[110, 126], [166, 128], [166, 141], [110, 140]]}, {"transcription": "不可漂白", "points": [[110, 142], [166, 143], [166, 157], [110, 156]]}, {"transcription": "悬挂晾干", "points": [[110, 161], [166, 161], [166, 175], [110, 175]]}, {"transcription": "熨斗底板最高温度110℃C", "points": [[110, 184], [262, 182], [262, 195], [110, 197]]}, {"transcription": "常规干洗", "points": [[110, 205], [167, 206], [167, 220], [110, 219]]}, {"transcription": "注意事项", "points": [[83, 230], [132, 230], [132, 242], [83, 242]]}, {"transcription": "分开洗涤,不宜长时间没泡,有", "points": [[107, 244], [261, 243], [261, 255], [107, 255]]}, {"transcription": "钮扣或拉链的服饰先将钮扣或拉链", "points": [[85, 256], [263, 257], [262, 268], [84, 267]]}, {"transcription": "扣好,费费时采用仪蒸汽费烫。", "points": [[86, 270], [237, 271], [237, 281], [86, 279]]}]
00015504.jpg [{"transcription": "2.2截至报告期末的普通股股东总数,前十名普通股股东、前十名无限售条件的普通", "points": [[71, 10], [518, 10], [518, 20], [71, 20]]}, {"transcription": "股股东的持股情况", "points": [[48, 37], [143, 37], [143, 49], [48, 49]]}, {"transcription": "单位:股", "points": [[427, 65], [471, 66], [471, 78], [427, 77]]}, {"transcription": "股东总数(户)", "points": [[25, 89], [93, 89], [93, 99], [25, 99]]}, {"transcription": "75,103", "points": [[508, 89], [541, 89], [541, 100], [508, 100]]}, {"transcription": "前十名股东持股情况", "points": [[237, 114], [329, 114], [329, 123], [237, 123]]}, {"transcription": "持有有限售条", "points": [[261, 143], [323, 143], [323, 153], [261, 153]]}, {"transcription": "质押或冻结情况", "points": [[359, 139], [431, 139], [431, 149], [359, 149]]}, {"transcription": "股东名称", "points": [[59, 151], [102, 151], [102, 162], [59, 162]]}, {"transcription": "期末持股数量", "points": [[141, 152], [204, 152], [204, 161], [141, 161]]}, {"transcription": "比例", "points": [[222, 149], [245, 149], [245, 163], [222, 163]]}, {"transcription": "件股份数量", "points": [[266, 159], [319, 159], [319, 170], [266, 170]]}, {"transcription": "股东性质", "points": [[482, 151], [523, 151], [523, 162], [482, 162]]}, {"transcription": "股份状态", "points": [[338, 163], [380, 163], [380, 174], [338, 174]]}, {"transcription": "数量", "points": [[416, 162], [439, 162], [439, 175], [416, 175]]}, {"transcription": "成都交子会融控股集团", "points": [[26, 185], [129, 185], [129, 194], [26, 194]]}, {"transcription": "有限公司", "points": [[25, 200], [67, 200], [67, 211], [25, 211]]}, {"transcription": "652.418.000.18.0613%", "points": [[148, 193], [259, 193], [259, 202], [148, 202]]}, {"transcription": "652.418.000", "points": [[265, 193], [324, 193], [324, 202], [265, 202]]}, {"transcription": "国有法人", "points": [[482, 192], [523, 192], [523, 203], [482, 203]]}, {"transcription": "HongLeongBank", "points": [[24, 217], [110, 218], [110, 230], [24, 229]]}, {"transcription": "Berhad", "points": [[24, 233], [60, 233], [60, 244], [24, 244]]}, {"transcription": "650.000.00017.9943%", "points": [[147, 225], [259, 225], [259, 235], [147, 235]]}, {"transcription": "650.000.000", "points": [[265, 225], [325, 226], [324, 236], [265, 235]]}, {"transcription": "境外法人", "points": [[482, 225], [523, 225], [523, 236], [482, 236]]}, {"transcription": "潍海产业投资基金管理", "points": [[25, 251], [130, 251], [130, 261], [25, 261]]}, {"transcription": "有限公司", "points": [[25, 267], [67, 267], [67, 278], [25, 278]]}, {"transcription": "240.000.000", "points": [[148, 260], [207, 260], [207, 269], [148, 269]]}, {"transcription": "6.6441%", "points": [[216, 259], [259, 259], [259, 270], [216, 270]]}, {"transcription": "240.000.000", "points": [[265, 260], [324, 260], [324, 269], [265, 269]]}, {"transcription": "境内非国有法人", "points": [[461, 259], [538, 259], [538, 270], [461, 270]]}, {"transcription": "成都工投资产经营有限", "points": [[26, 285], [129, 285], [129, 294], [26, 294]]}, {"transcription": "公司", "points": [[25, 300], [47, 300], [47, 312], [25, 312]]}, {"transcription": "180.600.242", "points": [[149, 293], [207, 293], [207, 302], [149, 302]]}, {"transcription": "4.9997%", "points": [[215, 292], [259, 292], [259, 303], [215, 303]]}, {"transcription": "国有法人", "points": [[482, 292], [524, 292], [524, 304], [482, 304]]}, {"transcription": "北京能源集团有限责任", "points": [[26, 319], [130, 319], [130, 328], [26, 328]]}, {"transcription": "公司", "points": [[25, 333], [47, 333], [47, 346], [25, 346]]}, {"transcription": "160.000.000", "points": [[148, 326], [207, 326], [207, 336], [148, 336]]}, {"transcription": "4.4294%", "points": [[216, 326], [260, 326], [260, 336], [216, 336]]}, {"transcription": "160.000.000", "points": [[264, 327], [324, 327], [324, 336], [264, 336]]}, {"transcription": "国有法人", "points": [[482, 325], [524, 325], [524, 336], [482, 336]]}, {"transcription": "成都欣天顾投资有限责", "points": [[25, 351], [129, 351], [129, 362], [25, 362]]}, {"transcription": "任公司", "points": [[25, 367], [56, 367], [56, 378], [25, 378]]}, {"transcription": "124,194,000", "points": [[148, 359], [207, 359], [207, 370], [148, 370]]}, {"transcription": "3.4381%", "points": [[215, 359], [259, 359], [259, 370], [215, 370]]}, {"transcription": "0", "points": [[317, 359], [326, 359], [326, 370], [317, 370]]}, {"transcription": "国有法人", "points": [[481, 359], [523, 358], [524, 370], [481, 371]]}, {"transcription": "上海东昌投资发展有限", "points": [[26, 386], [130, 386], [130, 395], [26, 395]]}, {"transcription": "公司", "points": [[24, 399], [47, 399], [47, 412], [24, 412]]}, {"transcription": "120.000.000", "points": [[148, 393], [206, 393], [206, 402], [148, 402]]}, {"transcription": "3.3220%", "points": [[216, 393], [258, 393], [258, 402], [216, 402]]}, {"transcription": "0", "points": [[318, 393], [325, 393], [325, 403], [318, 403]]}, {"transcription": "冻结", "points": [[347, 391], [370, 391], [370, 405], [347, 405]]}, {"transcription": "50.000.000境内非有法人", "points": [[411, 394], [538, 394], [538, 402], [411, 402]]}, {"transcription": "新华文轩出版传媒股份", "points": [[26, 419], [129, 419], [129, 428], [26, 428]]}, {"transcription": "有限公司", "points": [[25, 434], [66, 434], [66, 445], [25, 445]]}, {"transcription": "80.000.000", "points": [[153, 427], [206, 427], [206, 436], [153, 436]]}, {"transcription": "2.2147%", "points": [[216, 426], [259, 426], [259, 437], [216, 437]]}, {"transcription": "国有法人", "points": [[482, 426], [524, 426], [524, 437], [482, 437]]}, {"transcription": "四川新华发行集团有限", "points": [[26, 453], [129, 453], [129, 462], [26, 462]]}, {"transcription": "公司", "points": [[25, 467], [47, 467], [47, 480], [25, 480]]}, {"transcription": "71,243.800", "points": [[154, 460], [206, 460], [206, 470], [154, 470]]}, {"transcription": "1.9723%", "points": [[216, 460], [259, 460], [259, 470], [216, 470]]}, {"transcription": "0", "points": [[318, 460], [326, 460], [326, 470], [318, 470]]}, {"transcription": "国有法人", "points": [[482, 459], [524, 459], [524, 471], [482, 471]]}, {"transcription": "成都市协成资产管理有", "points": [[26, 485], [128, 485], [128, 495], [26, 495]]}, {"transcription": "限责任公司", "points": [[25, 501], [77, 501], [77, 512], [25, 512]]}, {"transcription": "71.154.900", "points": [[153, 494], [207, 494], [207, 503], [153, 503]]}, {"transcription": "1.9698%", "points": [[216, 494], [259, 494], [259, 503], [216, 503]]}, {"transcription": "0", "points": [[318, 494], [325, 494], [325, 504], [318, 504]]}, {"transcription": "国有法人", "points": [[482, 492], [524, 492], [524, 505], [482, 505]]}]
00018069.jpg [{"transcription": "代号", "points": [[20, 1], [53, 2], [52, 20], [20, 19]]}, {"transcription": "项目", "points": [[125, 2], [158, 2], [158, 20], [125, 20]]}, {"transcription": "结果", "points": [[232, 2], [266, 2], [266, 20], [232, 20]]}, {"transcription": "参考值", "points": [[297, 2], [345, 2], [345, 19], [297, 19]]}, {"transcription": "单位", "points": [[378, 2], [409, 2], [409, 19], [378, 19]]}, {"transcription": "ALT", "points": [[23, 23], [49, 23], [49, 37], [23, 37]]}, {"transcription": "谷丙转氨酶", "points": [[103, 22], [181, 23], [181, 38], [103, 37]]}, {"transcription": "25. 6", "points": [[233, 23], [266, 23], [266, 37], [233, 37]]}, {"transcription": "0--40", "points": [[301, 24], [342, 24], [342, 37], [301, 37]]}, {"transcription": "U/L", "points": [[380, 23], [407, 23], [407, 38], [380, 38]]}, {"transcription": "TBIL", "points": [[20, 42], [53, 42], [53, 56], [20, 56]]}, {"transcription": "总胆红素", "points": [[110, 40], [175, 41], [175, 57], [109, 56]]}, {"transcription": "11.2", "points": [[233, 42], [267, 42], [267, 56], [233, 56]]}, {"transcription": "<20", "points": [[309, 42], [335, 42], [335, 56], [309, 56]]}, {"transcription": "umol/L", "points": [[369, 42], [417, 41], [417, 56], [369, 57]]}, {"transcription": "DBIL", "points": [[20, 61], [53, 62], [52, 75], [19, 74]]}, {"transcription": "直接胆红素", "points": [[104, 59], [181, 60], [181, 76], [103, 75]]}, {"transcription": "3.3", "points": [[236, 62], [263, 62], [263, 75], [236, 75]]}, {"transcription": "0--7", "points": [[305, 61], [338, 61], [338, 75], [305, 75]]}, {"transcription": "umol/L", "points": [[369, 62], [417, 62], [417, 75], [369, 75]]}, {"transcription": "IBIL", "points": [[21, 81], [53, 81], [53, 93], [21, 93]]}, {"transcription": "间接胆红素", "points": [[105, 79], [182, 79], [182, 95], [105, 95]]}, {"transcription": "7.9", "points": [[238, 81], [263, 81], [263, 93], [238, 93]]}, {"transcription": "1.5--15", "points": [[294, 81], [349, 81], [349, 93], [294, 93]]}, {"transcription": "umol/L", "points": [[369, 80], [417, 80], [417, 94], [369, 94]]}, {"transcription": "TP", "points": [[27, 99], [45, 99], [45, 113], [27, 113]]}, {"transcription": "总蛋白", "points": [[119, 97], [167, 98], [166, 115], [119, 114]]}, {"transcription": "58. 9↓", "points": [[225, 98], [270, 97], [270, 113], [225, 114]]}, {"transcription": "60--80", "points": [[298, 100], [346, 100], [346, 112], [298, 112]]}, {"transcription": "g/L", "points": [[379, 99], [406, 97], [407, 113], [380, 115]]}, {"transcription": "ALB", "points": [[25, 119], [49, 119], [49, 132], [25, 132]]}, {"transcription": "白蛋白", "points": [[119, 117], [166, 117], [166, 134], [119, 134]]}, {"transcription": "35.1", "points": [[233, 119], [266, 119], [266, 132], [233, 132]]}, {"transcription": "33--55", "points": [[298, 119], [345, 119], [345, 131], [298, 131]]}, {"transcription": "g/L", "points": [[380, 118], [406, 117], [407, 132], [381, 134]]}, {"transcription": "GLO", "points": [[24, 137], [49, 137], [49, 151], [24, 151]]}, {"transcription": "球蛋白", "points": [[118, 136], [166, 136], [166, 152], [118, 152]]}, {"transcription": "23.8", "points": [[233, 137], [267, 138], [267, 151], [233, 151]]}, {"transcription": "20--30", "points": [[298, 138], [346, 138], [346, 151], [298, 151]]}, {"transcription": "g/L", "points": [[379, 137], [406, 136], [407, 151], [380, 153]]}, {"transcription": "A/G", "points": [[24, 156], [49, 156], [49, 170], [24, 170]]}, {"transcription": "白球比", "points": [[119, 155], [167, 154], [167, 170], [119, 172]]}, {"transcription": "1. 5", "points": [[236, 157], [263, 156], [264, 170], [236, 171]]}, {"transcription": "1:5--2.5", "points": [[290, 157], [354, 157], [354, 169], [290, 169]]}, {"transcription": "ALP", "points": [[24, 175], [49, 174], [50, 189], [24, 190]]}, {"transcription": "碱性磷酸酶", "points": [[102, 175], [182, 175], [182, 190], [102, 190]]}, {"transcription": "93", "points": [[241, 175], [259, 175], [259, 189], [241, 189]]}, {"transcription": "15--112", "points": [[293, 177], [350, 177], [350, 188], [293, 188]]}, {"transcription": "IU/L", "points": [[377, 175], [410, 175], [410, 190], [377, 190]]}, {"transcription": "GGT", "points": [[24, 194], [49, 194], [49, 208], [24, 208]]}, {"transcription": "谷氨酰转肽酶", "points": [[99, 194], [186, 194], [186, 206], [99, 206]]}, {"transcription": "14. 3", "points": [[233, 194], [266, 194], [266, 208], [233, 208]]}, {"transcription": "<50", "points": [[309, 194], [335, 194], [335, 208], [309, 208]]}, {"transcription": "U/L", "points": [[380, 194], [406, 194], [406, 208], [380, 208]]}, {"transcription": "AST", "points": [[24, 213], [49, 213], [49, 227], [24, 227]]}, {"transcription": "谷草转氨酶", "points": [[102, 213], [182, 213], [182, 227], [102, 227]]}, {"transcription": "16.3", "points": [[233, 214], [267, 213], [267, 227], [233, 227]]}, {"transcription": "8--40", "points": [[301, 214], [342, 214], [342, 227], [301, 227]]}, {"transcription": "U/L", "points": [[380, 213], [406, 213], [406, 227], [380, 227]]}, {"transcription": "LDH", "points": [[23, 233], [50, 233], [50, 246], [23, 246]]}, {"transcription": "乳酸脱氢酶", "points": [[102, 232], [182, 232], [182, 246], [102, 246]]}, {"transcription": "167", "points": [[236, 233], [262, 233], [262, 246], [236, 246]]}, {"transcription": "114--240", "points": [[290, 233], [354, 233], [354, 245], [290, 245]]}, {"transcription": "U/L", "points": [[380, 232], [406, 232], [406, 246], [380, 246]]}, {"transcription": "ADA", "points": [[24, 251], [50, 251], [50, 265], [24, 265]]}, {"transcription": "腺甘脱氨酶", "points": [[103, 251], [182, 251], [182, 266], [103, 266]]}, {"transcription": "12.6", "points": [[233, 252], [266, 252], [266, 265], [233, 265]]}, {"transcription": "4--24", "points": [[301, 252], [342, 252], [342, 265], [301, 265]]}, {"transcription": "U/L", "points": [[380, 251], [406, 251], [406, 266], [380, 266]]}]
00056221.jpg [{"transcription": "7788.com", "points": [[6, 6], [156, 6], [156, 49], [6, 49]]}, {"transcription": "Z57A001950", "points": [[80, 103], [229, 103], [229, 125], [80, 125]]}, {"transcription": "杭州东售", "points": [[410, 105], [505, 106], [505, 129], [409, 128]]}, {"transcription": "2013年07月07日13:39开", "points": [[72, 141], [321, 141], [321, 159], [72, 159]]}, {"transcription": "06车12B号", "points": [[394, 139], [506, 139], [506, 160], [394, 160]]}, {"transcription": "二等座", "points": [[436, 159], [506, 162], [505, 184], [435, 181]]}, {"transcription": "杭州东", "points": [[93, 183], [194, 183], [194, 215], [93, 215]]}, {"transcription": "G7512次", "points": [[241, 176], [352, 178], [352, 201], [241, 200]]}, {"transcription": "上海虹桥", "points": [[388, 184], [517, 187], [516, 214], [387, 211]]}, {"transcription": "HangZhouDong", "points": [[83, 217], [219, 219], [219, 238], [83, 237]]}, {"transcription": "ShangHaiHongQiao", "points": [[365, 218], [527, 219], [526, 238], [365, 236]]}, {"transcription": "¥73.00元", "points": [[78, 245], [178, 245], [178, 265], [78, 265]]}, {"transcription": "限乘当日当次车", "points": [[79, 277], [217, 277], [217, 296], [79, 296]]}, {"transcription": "余友红", "points": [[75, 302], [145, 302], [145, 326], [75, 326]]}, {"transcription": "检票口16", "points": [[299, 316], [405, 308], [407, 335], [301, 343]]}, {"transcription": "3623301993****0941", "points": [[74, 332], [280, 330], [281, 350], [74, 352]]}, {"transcription": "9004-1300-5707-08A0-0195-0", "points": [[64, 367], [325, 367], [325, 383], [64, 383]]}, {"transcription": "和谐号", "points": [[423, 360], [513, 360], [513, 380], [423, 380]]}, {"transcription": "CanonPowerShotA3400IS F2.81/20sIS0400", "points": [[16, 495], [242, 494], [242, 505], [16, 505]]}]
00057937.jpg [{"transcription": "Mlicialilac", "points": [[9, 8], [63, 8], [63, 19], [9, 19]]}, {"transcription": "I iba.c5n", "points": [[9, 19], [46, 19], [46, 30], [9, 30]]}, {"transcription": "350481197911", "points": [[38, 37], [196, 0], [201, 20], [43, 57]]}, {"transcription": "院附属瑞金医院", "points": [[579, 57], [810, 47], [811, 79], [581, 89]]}, {"transcription": "标本号:OA", "points": [[866, 90], [997, 88], [998, 116], [866, 117]]}, {"transcription": "豆报告单(临床内分泌)", "points": [[377, 105], [681, 97], [682, 126], [378, 135]]}, {"transcription": "标本种类:血清", "points": [[621, 146], [753, 143], [753, 164], [621, 167]]}, {"transcription": "标志提示:", "points": [[851, 141], [944, 139], [945, 161], [852, 163]]}, {"transcription": "门诊号:E05535540", "points": [[350, 152], [540, 149], [540, 169], [350, 172]]}, {"transcription": "条码号:10080603139", "points": [[621, 172], [845, 165], [846, 186], [622, 193]]}, {"transcription": "临床诊断:", "points": [[851, 167], [944, 166], [945, 185], [851, 187]]}, {"transcription": "别女", "points": [[127, 181], [185, 179], [185, 201], [128, 203]]}, {"transcription": "门诊科别:门诊内分泌", "points": [[348, 177], [535, 175], [535, 196], [349, 198]]}, {"transcription": "申请医生孙首悦", "points": [[622, 197], [774, 193], [774, 214], [622, 218]]}, {"transcription": "检测日期:2010", "points": [[853, 192], [995, 188], [995, 209], [853, 213]]}, {"transcription": "年龄:31", "points": [[73, 203], [187, 201], [188, 225], [74, 227]]}, {"transcription": "检验备注:", "points": [[73, 229], [165, 227], [166, 249], [74, 251]]}, {"transcription": "项目", "points": [[71, 263], [121, 263], [121, 290], [71, 290]]}, {"transcription": "结果", "points": [[469, 259], [520, 259], [520, 286], [469, 286]]}, {"transcription": "参考范围", "points": [[694, 255], [792, 253], [792, 278], [694, 280]]}, {"transcription": "FT3", "points": [[71, 298], [106, 298], [106, 320], [71, 320]]}, {"transcription": "3.12", "points": [[475, 295], [518, 295], [518, 316], [475, 316]]}, {"transcription": "2.62--6.49pmol/L", "points": [[695, 291], [861, 288], [861, 309], [696, 312]]}, {"transcription": "FT4", "points": [[70, 329], [106, 329], [106, 351], [70, 351]]}, {"transcription": "15.40", "points": [[477, 325], [529, 325], [529, 345], [477, 345]]}, {"transcription": "9.01--19.04pmol/L", "points": [[697, 321], [873, 319], [874, 340], [697, 342]]}, {"transcription": "STSH", "points": [[70, 361], [122, 361], [122, 381], [70, 381]]}, {"transcription": "1.31", "points": [[477, 355], [520, 355], [520, 376], [477, 376]]}, {"transcription": "0.35--4.94μIU/ml", "points": [[698, 352], [862, 350], [863, 371], [698, 373]]}, {"transcription": "TGAB", "points": [[70, 392], [124, 392], [124, 412], [70, 412]]}, {"transcription": "0.15", "points": [[477, 385], [520, 385], [520, 406], [477, 406]]}, {"transcription": "<4.111U/ml", "points": [[701, 383], [809, 380], [810, 402], [701, 405]]}, {"transcription": "0.1", "points": [[478, 416], [510, 416], [510, 438], [478, 438]]}, {"transcription": "<5.0U/L", "points": [[703, 412], [779, 412], [779, 434], [703, 434]]}, {"transcription": "TRAb", "points": [[69, 423], [120, 423], [120, 444], [69, 444]]}, {"transcription": "TPOAb", "points": [[68, 454], [136, 454], [136, 476], [68, 476]]}, {"transcription": "0.17", "points": [[479, 447], [521, 447], [521, 468], [479, 468]]}, {"transcription": "<5.611U/ml", "points": [[704, 445], [812, 445], [812, 466], [704, 466]]}, {"transcription": "降钙素", "points": [[65, 485], [128, 485], [128, 510], [65, 510]]}, {"transcription": "0.1", "points": [[479, 478], [511, 478], [511, 500], [479, 500]]}, {"transcription": "0.1--10.0pg/ml", "points": [[701, 477], [848, 475], [849, 497], [702, 499]]}, {"transcription": "报告时间:10-08-0711:28", "points": [[623, 673], [849, 665], [849, 687], [624, 694]]}, {"transcription": "打印时间:1", "points": [[892, 667], [998, 662], [999, 684], [893, 689]]}, {"transcription": "采样时间:10-08-0611:23", "points": [[52, 685], [286, 678], [286, 699], [53, 706]]}, {"transcription": "收到时间:10-08-0611:44", "points": [[350, 678], [578, 670], [579, 691], [351, 699]]}, {"transcription": "检验:李纪平", "points": [[623, 705], [781, 700], [781, 724], [624, 729]]}, {"transcription": "核对:", "points": [[893, 697], [999, 694], [999, 719], [894, 722]]}, {"transcription": "以上7项检验结果仅供临床医师参考", "points": [[50, 719], [342, 712], [342, 731], [50, 738]]}]
00059985.jpg [{"transcription": "小学数学第八珊第三单元测试题", "points": [[156, 13], [490, 13], [490, 31], [156, 31]]}, {"transcription": "(小数乘法)", "points": [[239, 49], [317, 49], [317, 65], [239, 65]]}, {"transcription": "姓名:", "points": [[109, 83], [160, 83], [160, 103], [109, 103]]}, {"transcription": "班别:", "points": [[306, 83], [356, 83], [356, 102], [306, 102]]}, {"transcription": "分数:", "points": [[457, 83], [506, 83], [506, 103], [457, 103]]}, {"transcription": "计算题。(共38分)", "points": [[66, 126], [226, 126], [226, 143], [66, 143]]}, {"transcription": "1,首接写出得数。", "points": [[10, 170], [156, 170], [156, 183], [10, 183]]}, {"transcription": "(10分)", "points": [[173, 168], [235, 168], [235, 185], [173, 185]]}, {"transcription": "0.8X25=", "points": [[8, 210], [85, 210], [85, 224], [8, 224]]}, {"transcription": "0X4.23=", "points": [[150, 210], [227, 210], [227, 224], [150, 224]]}, {"transcription": "0.57+0.43=", "points": [[265, 211], [361, 211], [361, 224], [265, 224]]}, {"transcription": "2.4X0.2=", "points": [[400, 211], [486, 211], [486, 224], [400, 224]]}, {"transcription": "0.02", "points": [[523, 209], [563, 209], [563, 226], [523, 226]]}, {"transcription": "X500=", "points": [[9, 252], [67, 252], [67, 267], [9, 267]]}, {"transcription": "2.8×10=", "points": [[8, 294], [85, 293], [85, 307], [8, 308]]}, {"transcription": "8.29X100=", "points": [[132, 294], [226, 294], [226, 308], [132, 308]]}, {"transcription": "2.5X0.4=", "points": [[265, 294], [351, 294], [351, 308], [265, 308]]}, {"transcription": "4.87-1. 7=", "points": [[380, 294], [467, 294], [467, 308], [380, 308]]}, {"transcription": "8.07", "points": [[523, 292], [563, 292], [563, 309], [523, 309]]}, {"transcription": "X1000=", "points": [[10, 336], [76, 336], [76, 349], [10, 349]]}, {"transcription": "2.用坚式计算。(", "points": [[9, 377], [163, 377], [163, 392], [9, 392]]}, {"transcription": "(12分)", "points": [[156, 377], [221, 377], [221, 393], [156, 393]]}, {"transcription": "2.97X3.8=", "points": [[8, 419], [104, 418], [104, 432], [9, 432]]}, {"transcription": "7.05X0.84=", "points": [[317, 419], [421, 419], [421, 432], [317, 432]]}]
00077949.jpg [{"transcription": "合格证", "points": [[418, 91], [472, 88], [473, 117], [420, 120]]}, {"transcription": "品名:纯棉单面背心套", "points": [[365, 126], [481, 122], [482, 139], [366, 144]]}, {"transcription": "执行标准:FZ/T73025-2006", "points": [[366, 155], [532, 148], [532, 165], [367, 171]]}, {"transcription": "安全类别:GB18401-2010", "points": [[368, 187], [529, 182], [530, 197], [368, 202]]}, {"transcription": "A类婴幼儿用品", "points": [[394, 212], [513, 209], [513, 227], [394, 230]]}, {"transcription": "货号:B2390", "points": [[367, 244], [443, 241], [444, 260], [368, 262]]}, {"transcription": "DREA", "points": [[325, 275], [359, 277], [358, 292], [324, 290]]}, {"transcription": "等级:一等品检验员:08", "points": [[369, 277], [517, 276], [517, 292], [369, 293]]}, {"transcription": "BABYUNDI", "points": [[325, 293], [358, 297], [357, 308], [324, 305]]}, {"transcription": "MOTHERA", "points": [[325, 303], [358, 306], [357, 316], [324, 313]]}, {"transcription": "成份:面料:100%棉", "points": [[371, 313], [486, 313], [486, 330], [371, 330]]}, {"transcription": "6195955511702539", "points": [[376, 383], [499, 387], [499, 399], [376, 395]]}, {"transcription": "小晶晶母婴", "points": [[179, 402], [375, 402], [375, 453], [179, 453]]}, {"transcription": "6959555782539", "points": [[382, 444], [498, 451], [497, 462], [381, 455]]}, {"transcription": "4B23906MTH(6/12/18MTH)", "points": [[385, 470], [524, 480], [523, 492], [384, 482]]}, {"transcription": "装:66/48", "points": [[383, 481], [445, 488], [443, 500], [382, 493]]}, {"transcription": "零售价:47.50元", "points": [[377, 493], [466, 501], [464, 516], [376, 507]]}, {"transcription": "下装:66/47", "points": [[439, 486], [524, 492], [523, 506], [438, 501]]}]
00111002.jpg [{"transcription": "CreditC@rd", "points": [[5, 5], [93, 7], [93, 25], [5, 23]]}, {"transcription": "中国工商银行", "points": [[161, 15], [414, 14], [414, 52], [161, 53]]}, {"transcription": "INDUSTRUALAEDCOMMERCIAL BMHIKCFUHINA", "points": [[164, 59], [408, 59], [408, 73], [164, 73]]}, {"transcription": "持卡人存根", "points": [[278, 86], [418, 86], [418, 109], [278, 109]]}, {"transcription": "商户名称&编号(MERCHANTNAME&CODE)", "points": [[67, 113], [411, 113], [411, 131], [67, 131]]}, {"transcription": "工行浣纱支行积分兑换", "points": [[66, 138], [292, 138], [292, 160], [66, 160]]}, {"transcription": "120214020408", "points": [[66, 168], [246, 168], [246, 188], [66, 188]]}, {"transcription": "检索参考号(SYSTEMNO)", "points": [[66, 196], [247, 195], [247, 215], [66, 216]]}, {"transcription": "终端号", "points": [[297, 197], [360, 195], [361, 214], [298, 215]]}, {"transcription": "(TERMINAL)", "points": [[354, 196], [424, 194], [425, 208], [354, 211]]}, {"transcription": "60128018", "points": [[66, 220], [188, 219], [188, 241], [66, 242]]}, {"transcription": "001", "points": [[337, 216], [383, 216], [383, 240], [337, 240]]}, {"transcription": "卡号(CARDNUMBER):", "points": [[72, 249], [246, 247], [247, 268], [72, 271]]}, {"transcription": "622210512", "points": [[113, 272], [246, 270], [247, 301], [114, 303]]}, {"transcription": "S", "points": [[366, 268], [385, 268], [385, 299], [366, 299]]}, {"transcription": "卡类别(CARDTYPE)", "points": [[73, 312], [206, 309], [206, 329], [73, 332]]}, {"transcription": "有效期", "points": [[304, 308], [369, 308], [369, 327], [304, 327]]}, {"transcription": "(EXPIRY)", "points": [[362, 309], [417, 307], [418, 322], [363, 324]]}, {"transcription": "牡丹准货记卡", "points": [[71, 336], [241, 333], [242, 354], [72, 358]]}, {"transcription": "交易日期(DATE)", "points": [[74, 362], [198, 359], [199, 379], [74, 382]]}, {"transcription": "交易时间(TIME)", "points": [[303, 359], [425, 357], [425, 377], [303, 378]]}, {"transcription": "2012-10-23", "points": [[73, 384], [220, 381], [220, 403], [73, 406]]}, {"transcription": "12:43:15", "points": [[309, 380], [428, 379], [429, 401], [309, 402]]}, {"transcription": "批次号(BATCHNO)", "points": [[76, 412], [210, 408], [211, 426], [76, 430]]}, {"transcription": "流水号(TRACENO)", "points": [[306, 409], [429, 407], [430, 427], [306, 428]]}, {"transcription": "000016", "points": [[323, 429], [416, 431], [415, 453], [323, 451]]}, {"transcription": "积分兑奖", "points": [[162, 460], [319, 459], [320, 494], [162, 495]]}, {"transcription": "信用卡积分:50000", "points": [[76, 502], [311, 499], [311, 523], [76, 526]]}, {"transcription": "持卡人姓名(CARDHOLDERNAME):", "points": [[76, 532], [349, 532], [349, 549], [76, 549]]}, {"transcription": "MR.I", "points": [[100, 553], [151, 553], [151, 576], [100, 576]]}, {"transcription": "持卡人签名", "points": [[75, 612], [213, 613], [213, 636], [75, 635]]}, {"transcription": "(CARDHOLDERSIGNATURE):", "points": [[79, 643], [411, 640], [411, 658], [79, 660]]}]
00207393.jpg [{"transcription": "中国农业银行", "points": [[154, 63], [448, 59], [449, 111], [154, 114]]}, {"transcription": "AGRICULTURAL BANK OF CHINA", "points": [[156, 117], [446, 115], [446, 130], [156, 133]]}, {"transcription": "本网点办", "points": [[90, 175], [164, 176], [163, 190], [90, 190]]}, {"transcription": "理各养金融业务", "points": [[208, 177], [324, 176], [324, 189], [208, 190]]}]
1.jpg [{"transcription": "土地整治与土壤修复研究中心", "points": [[296, 300], [331, 299], [345, 846], [311, 847]]}, {"transcription": "华南农业大学一东图", "points": [[347, 301], [377, 301], [384, 658], [353, 659]]}]
11.jpg [{"transcription": "纯臻营养护发素", "points": [[28, 38], [303, 39], [303, 72], [28, 71]]}, {"transcription": "产品信息/参数", "points": [[27, 82], [171, 82], [171, 103], [27, 103]]}, {"transcription": "(45元/每公斤,100公斤起订)", "points": [[28, 114], [332, 114], [332, 133], [28, 133]]}, {"transcription": "每瓶22元,1000瓶起订)", "points": [[27, 143], [282, 144], [282, 164], [27, 163]]}, {"transcription": "【品牌】:代加工方式/OEMODM", "points": [[26, 178], [301, 179], [301, 197], [26, 196]]}, {"transcription": "【品名】:纯臻营养护发素", "points": [[26, 210], [234, 210], [234, 227], [26, 227]]}, {"transcription": "(产品编号):YM-X-3011", "points": [[27, 241], [241, 241], [241, 258], [27, 258]]}, {"transcription": "ODMOEM", "points": [[415, 236], [427, 236], [427, 302], [415, 302]]}, {"transcription": "净含量】:220ml", "points": [[26, 273], [179, 272], [179, 288], [26, 289]]}, {"transcription": "适用人群:适合所有肤质", "points": [[27, 304], [252, 304], [252, 320], [27, 320]]}, {"transcription": "【主要成分】:鲸蜡硬脂醇、燕麦β-葡聚", "points": [[26, 334], [343, 335], [343, 352], [26, 352]]}, {"transcription": "糖、椰油酰胺丙基甜菜碱、泛醒", "points": [[27, 366], [282, 366], [282, 383], [27, 383]]}, {"transcription": "(成品包材)", "points": [[371, 370], [473, 369], [473, 386], [371, 386]]}, {"transcription": "主要功能):可紧致头发磷层,从而达到", "points": [[27, 398], [361, 398], [361, 414], [27, 414]]}, {"transcription": "即时持久改善头发光泽的效果,给干燥的头", "points": [[29, 429], [371, 429], [371, 445], [29, 445]]}, {"transcription": "发足够的滋养", "points": [[29, 460], [134, 460], [134, 476], [29, 476]]}]
12.jpg [{"transcription": "上海斯格威铂尔文大酒店", "points": [[41, 414], [481, 392], [483, 429], [43, 451]]}, {"transcription": "打浦路15号", "points": [[194, 457], [396, 448], [398, 479], [195, 488]]}, {"transcription": "绿洲仕格维花园公寓", "points": [[17, 510], [514, 490], [516, 530], [19, 549]]}, {"transcription": "打浦路252935号", "points": [[79, 555], [399, 541], [400, 572], [80, 585]]}]
french_0.jpg [{"transcription": "MairieduJer", "points": [[220, 236], [366, 220], [369, 248], [223, 264]]}, {"transcription": "Palais duLOUVRE", "points": [[258, 324], [468, 348], [465, 379], [254, 354]]}, {"transcription": "LESARTSDECORATIFS", "points": [[243, 440], [508, 425], [509, 455], [245, 469]]}, {"transcription": "火", "points": [[209, 451], [227, 451], [227, 471], [209, 471]]}, {"transcription": "人", "points": [[239, 548], [253, 548], [253, 566], [239, 566]]}, {"transcription": "Musee du LOUVRE", "points": [[266, 544], [475, 556], [473, 583], [264, 571]]}, {"transcription": "Theatre", "points": [[201, 637], [277, 644], [274, 673], [198, 666]]}, {"transcription": "du PALAIS-ROYAL", "points": [[200, 671], [371, 682], [369, 707], [199, 696]]}]
ger_1.jpg [{"transcription": "EPPING", "points": [[77, 121], [272, 125], [271, 165], [76, 162]]}, {"transcription": "Twinned with", "points": [[102, 185], [246, 187], [246, 204], [102, 202]]}, {"transcription": "Eppingen,Germany", "points": [[69, 206], [274, 209], [274, 229], [68, 226]]}]
ger_2.jpg [{"transcription": "HaltenSie,", "points": [[19, 12], [172, 16], [171, 52], [18, 48]]}, {"transcription": "was Sieversprechen", "points": [[16, 46], [320, 42], [320, 82], [17, 86]]}, {"transcription": "Und geben Sie noch wasdazu.", "points": [[20, 79], [377, 81], [377, 119], [19, 117]]}]
japan_1.jpg []
japan_2.jpg [{"transcription": "屯专屯专", "points": [[672, 62], [847, 62], [847, 104], [672, 104]]}, {"transcription": "天然の", "points": [[397, 83], [533, 80], [534, 128], [398, 131]]}, {"transcription": "俊味の", "points": [[1069, 98], [1294, 98], [1294, 139], [1069, 139]]}, {"transcription": "濃厚衣", "points": [[247, 119], [323, 119], [323, 149], [247, 149]]}, {"transcription": "5", "points": [[415, 156], [594, 156], [594, 190], [415, 190]]}, {"transcription": "味深", "points": [[772, 152], [893, 152], [893, 178], [772, 178]]}, {"transcription": "燒", "points": [[932, 156], [1226, 156], [1226, 223], [932, 223]]}, {"transcription": "深の", "points": [[172, 174], [293, 174], [293, 199], [172, 199]]}, {"transcription": "味の", "points": [[119, 222], [560, 222], [560, 284], [119, 284]]}, {"transcription": "3-0", "points": [[595, 229], [718, 229], [718, 263], [595, 263]]}, {"transcription": "鲍の", "points": [[753, 254], [1036, 248], [1037, 294], [754, 299]]}, {"transcription": "艳品", "points": [[1057, 246], [1134, 246], [1134, 282], [1057, 282]]}, {"transcription": "香法", "points": [[62, 308], [204, 308], [204, 347], [62, 347]]}, {"transcription": "の", "points": [[230, 333], [351, 336], [350, 365], [229, 362]]}, {"transcription": "脂の秉", "points": [[642, 339], [801, 335], [802, 369], [643, 374]]}, {"transcription": "力", "points": [[1207, 348], [1344, 348], [1344, 382], [1207, 382]]}, {"transcription": "揚", "points": [[943, 363], [1161, 359], [1162, 409], [944, 413]]}, {"transcription": "龙の", "points": [[746, 389], [922, 382], [923, 420], [747, 427]]}, {"transcription": "出来", "points": [[566, 407], [710, 403], [711, 444], [567, 448]]}, {"transcription": "新鲜龙", "points": [[1224, 413], [1301, 413], [1301, 443], [1224, 443]]}, {"transcription": "于", "points": [[362, 437], [460, 434], [461, 464], [363, 467]]}, {"transcription": "風味豊龙", "points": [[109, 454], [232, 454], [232, 483], [109, 483]]}, {"transcription": "熟成", "points": [[715, 453], [860, 453], [860, 491], [715, 491]]}, {"transcription": "美味", "points": [[1303, 459], [1400, 463], [1398, 511], [1302, 507]]}, {"transcription": "芳醇太", "points": [[241, 491], [378, 491], [378, 538], [241, 538]]}, {"transcription": "の", "points": [[818, 529], [990, 529], [990, 562], [818, 562]]}, {"transcription": "旬", "points": [[1100, 583], [1189, 586], [1186, 660], [1097, 656]]}, {"transcription": "産地送", "points": [[1233, 580], [1381, 577], [1381, 614], [1234, 617]]}, {"transcription": "久", "points": [[254, 612], [473, 615], [472, 657], [253, 654]]}, {"transcription": "食~=3", "points": [[750, 616], [848, 613], [849, 644], [751, 647]]}, {"transcription": "秘の", "points": [[566, 628], [674, 625], [675, 665], [567, 668]]}, {"transcription": "机工", "points": [[668, 680], [783, 675], [784, 709], [669, 713]]}, {"transcription": "个一下", "points": [[806, 673], [984, 673], [984, 706], [806, 706]]}, {"transcription": "本場の", "points": [[997, 730], [1107, 727], [1108, 767], [998, 770]]}, {"transcription": "朝探勺", "points": [[282, 741], [377, 738], [378, 774], [283, 777]]}, {"transcription": "筱味", "points": [[506, 743], [769, 743], [769, 784], [506, 784]]}, {"transcription": "33", "points": [[829, 769], [925, 769], [925, 798], [829, 798]]}]
korean_1.jpg [{"transcription": "26", "points": [[401, 518], [503, 516], [504, 552], [401, 554]]}]
model_prod_flow_ch.png [{"transcription": "Paddle.jit.saveO", "points": [[701, 7], [933, 11], [933, 46], [700, 43]]}, {"transcription": "best_accuracy.pdopt", "points": [[271, 67], [573, 70], [573, 107], [271, 104]]}, {"transcription": "inference.pdmodel", "points": [[992, 89], [1266, 89], [1266, 125], [992, 125]]}, {"transcription": "ch det mv3", "points": [[1674, 93], [1853, 93], [1853, 123], [1674, 123]]}, {"transcription": "模型训练", "points": [[49, 110], [193, 110], [193, 147], [49, 147]]}, {"transcription": " best_accuracy.pdparams", "points": [[251, 110], [634, 113], [634, 148], [250, 145]]}, {"transcription": "模型转换", "points": [[745, 111], [887, 111], [887, 148], [745, 148]]}, {"transcription": "opt优化模型", "points": [[1394, 114], [1592, 109], [1593, 147], [1394, 152]]}, {"transcription": "inference.pdiparams", "points": [[994, 135], [1292, 135], [1292, 166], [994, 166]]}, {"transcription": "db opt.nb", "points": [[1692, 136], [1840, 136], [1840, 168], [1692, 168]]}, {"transcription": "best_accuracy.states", "points": [[271, 153], [573, 157], [573, 193], [271, 188]]}]
index,uuid,driver_version,name,gpu_serial,display_active,display_mode
pid,process_name,gpu_uuid,gpu_name,used_memory
index,utilization_gpu,memory_total,memory_used,memory_free,timestamp
[{'name': 'zmdrkw', 'rank': -1, 'replicas': 4, 'dtype': 'gpu', 'candidate': '10.6.6.220:52234', 'endpoints': '10.6.6.220:52235,10.6.6.220:52236,10.6.6.220:52237,10.6.6.220:52238'}]
\ No newline at end of file
/usr/local/bin/python3: can't open file 'tools/eval.py': [Errno 2] No such file or directory
/usr/local/bin/python3: can't open file 'tools/eval.py': [Errno 2] No such file or directory
/usr/local/bin/python3: can't open file 'tools/eval.py': [Errno 2] No such file or directory
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import sys
import numpy as np
import skimage
import paddle
import signal
import random
__dir__ = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.abspath(os.path.join(__dir__, '../..')))
import copy
from paddle.io import Dataset, DataLoader, BatchSampler, DistributedBatchSampler
import paddle.distributed as dist
from ppocr.data.imaug import transform, create_operators
from ppocr.data.simple_dataset import SimpleDataSet
from ppocr.data.lmdb_dataset import LMDBDataSet
from ppocr.data.pgnet_dataset import PGDataSet
from ppocr.data.pubtab_dataset import PubTabDataSet
__all__ = ['build_dataloader', 'transform', 'create_operators']
def term_mp(sig_num, frame):
""" kill all child processes
"""
pid = os.getpid()
pgid = os.getpgid(os.getpid())
print("main proc {} exit, kill process group " "{}".format(pid, pgid))
os.killpg(pgid, signal.SIGKILL)
def build_dataloader(config, mode, device, logger, seed=None):
config = copy.deepcopy(config)
support_dict = [
'SimpleDataSet', 'LMDBDataSet', 'PGDataSet', 'PubTabDataSet'
]
module_name = config[mode]['dataset']['name']
assert module_name in support_dict, Exception(
'DataSet only support {}'.format(support_dict))
assert mode in ['Train', 'Eval', 'Test'
], "Mode should be Train, Eval or Test."
dataset = eval(module_name)(config, mode, logger, seed)
loader_config = config[mode]['loader']
batch_size = loader_config['batch_size_per_card']
drop_last = loader_config['drop_last']
shuffle = loader_config['shuffle']
num_workers = loader_config['num_workers']
if 'use_shared_memory' in loader_config.keys():
use_shared_memory = loader_config['use_shared_memory']
else:
use_shared_memory = True
if mode == "Train":
# Distribute data to multiple cards
batch_sampler = DistributedBatchSampler(
dataset=dataset,
batch_size=batch_size,
shuffle=shuffle,
drop_last=drop_last)
else:
# Distribute data to single card
batch_sampler = BatchSampler(
dataset=dataset,
batch_size=batch_size,
shuffle=shuffle,
drop_last=drop_last)
if 'collate_fn' in loader_config:
from . import collate_fn
collate_fn = getattr(collate_fn, loader_config['collate_fn'])()
else:
collate_fn = None
data_loader = DataLoader(
dataset=dataset,
batch_sampler=batch_sampler,
places=device,
num_workers=num_workers,
return_list=True,
use_shared_memory=use_shared_memory,
collate_fn=collate_fn)
# support exit using ctrl+c
signal.signal(signal.SIGINT, term_mp)
signal.signal(signal.SIGTERM, term_mp)
return data_loader
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import paddle
import numbers
import numpy as np
from collections import defaultdict
class DictCollator(object):
"""
data batch
"""
def __call__(self, batch):
# todo:support batch operators
data_dict = defaultdict(list)
to_tensor_keys = []
for sample in batch:
for k, v in sample.items():
if isinstance(v, (np.ndarray, paddle.Tensor, numbers.Number)):
if k not in to_tensor_keys:
to_tensor_keys.append(k)
data_dict[k].append(v)
for k in to_tensor_keys:
data_dict[k] = paddle.to_tensor(data_dict[k])
return data_dict
class ListCollator(object):
"""
data batch
"""
def __call__(self, batch):
# todo:support batch operators
data_dict = defaultdict(list)
to_tensor_idxs = []
for sample in batch:
for idx, v in enumerate(sample):
if isinstance(v, (np.ndarray, paddle.Tensor, numbers.Number)):
if idx not in to_tensor_idxs:
to_tensor_idxs.append(idx)
data_dict[idx].append(v)
for idx in to_tensor_idxs:
data_dict[idx] = paddle.to_tensor(data_dict[idx])
return list(data_dict.values())
class SSLRotateCollate(object):
"""
bach: [
[(4*3xH*W), (4,)]
[(4*3xH*W), (4,)]
...
]
"""
def __call__(self, batch):
output = [np.concatenate(d, axis=0) for d in zip(*batch)]
return output
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from paddle.vision.transforms import ColorJitter as pp_ColorJitter
__all__ = ['ColorJitter']
class ColorJitter(object):
def __init__(self, brightness=0, contrast=0, saturation=0, hue=0,**kwargs):
self.aug = pp_ColorJitter(brightness, contrast, saturation, hue)
def __call__(self, data):
image = data['image']
image = self.aug(image)
data['image'] = image
return data
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from .iaa_augment import IaaAugment
from .make_border_map import MakeBorderMap
from .make_shrink_map import MakeShrinkMap
from .random_crop_data import EastRandomCropData, RandomCropImgMask
from .make_pse_gt import MakePseGt
from .rec_img_aug import RecAug, RecConAug, RecResizeImg, ClsResizeImg, \
SRNRecResizeImg, NRTRRecResizeImg, SARRecResizeImg, PRENResizeImg, \
SVTRRecResizeImg
from .ssl_img_aug import SSLRotateResize
from .randaugment import RandAugment
from .copy_paste import CopyPaste
from .ColorJitter import ColorJitter
from .operators import *
from .label_ops import *
def transform(data, ops=None):
""" transform """
if ops is None:
ops = []
for op in ops:
data = op(data)
if data is None:
return None
return data
def create_operators(op_param_list, global_config=None):
"""
create operators based on the config
Args:
params(list): a dict list, used to create some operators
"""
assert isinstance(op_param_list, list), ('operator config should be a list')
ops = []
for operator in op_param_list:
assert isinstance(operator,
dict) and len(operator) == 1, "yaml format error"
op_name = list(operator)[0]
param = {} if operator[op_name] is None else operator[op_name]
if global_config is not None:
param.update(global_config)
op = eval(op_name)(**param)
ops.append(op)
return ops
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment