From 9cef24090c6073e420b5a0d40cb4ce1b67d86fc9 Mon Sep 17 00:00:00 2001 From: chenlizhi Date: Mon, 17 Oct 2022 16:47:28 +0800 Subject: [PATCH] add and update sr model --- configs/sr/sr_telescope.yml | 2 +- doc/imgs_results/sr_word_52.png | Bin 0 -> 8396 bytes ppocr/losses/__init__.py | 5 +- .../configs/sr_telescope/sr_telescope.yml | 84 ++++++++++++++++++ .../sr_telescope/train_infer_python.txt | 53 +++++++++++ 5 files changed, 142 insertions(+), 2 deletions(-) create mode 100644 doc/imgs_results/sr_word_52.png create mode 100644 test_tipc/configs/sr_telescope/sr_telescope.yml create mode 100644 test_tipc/configs/sr_telescope/train_infer_python.txt diff --git a/configs/sr/sr_telescope.yml b/configs/sr/sr_telescope.yml index dc0b195b..33d07e8f 100644 --- a/configs/sr/sr_telescope.yml +++ b/configs/sr/sr_telescope.yml @@ -80,5 +80,5 @@ Eval: shuffle: False drop_last: False batch_size_per_card: 16 - num_workers: 0 + num_workers: 4 diff --git a/doc/imgs_results/sr_word_52.png b/doc/imgs_results/sr_word_52.png new file mode 100644 index 0000000000000000000000000000000000000000..c983e9ad7a82573e42d9f52248c0ec535c455197 GIT binary patch literal 8396 zcmV;-AT!^IP)aF%ly=Mj<7MgjsrLPS6SL_jbAM99gQSpm>M5Q)$-um>lmHF2ij)LGMMoHNYN08P!K#}1`7eKC^ML% z_mmZwa8eD3MYW1-BHm-p5{V{3Pms(Uq7OYia?sgGLRXvY0i*+ zM6hHGMU8yK_M|?UFQMn8`Q5u6<{pYHqqkIQABHj2!YNr`_CSuDU&SU?<3S2e0Xpp& z*;hi-D8y*&k(mih(1SX)sfcrEMID0n;1RQd3oZbW0iHN>(hVni~FZ%O-g0EAFgkvW&sUw)nJ)S5GD}?%)N$y z%ru(?Gu+)CKmOgbs~5)+`c0e{1DHTiDrZFj3X%sE0Mp2r2B{X520;ZxYaQo4iz7t@ zK~$(BrlSVWrAR=q4m=YWvgeWkku*b$oYX>uX|Jek$-tZvnKD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