{"notes":[{"id":"text-detection/dbnet_puls_puls","category":"text-detection","legacyPath":"text-detection/2202-dbnet_puls_puls","legacySlug":"2202-dbnet_puls_puls","legacyPaths":["text_detection/dbnet_pp"],"title":"DBNet++","subtitle":"Adaptive Feature Fusion","author":"Z. Yuan","paperDate":"2022-02-21","publishedOn":"2024-09-14","paperTitle":"Real-Time Scene Text Detection with Differentiable Binarization and Adaptive Scale Fusion","paperUrl":"https://arxiv.org/abs/2202.10304","bibliography":{"title":"Real-Time Scene Text Detection with Differentiable Binarization and Adaptive Scale Fusion","authors":["Minghui Liao","Zhisheng Zou","Zhaoyi Wan","Cong Yao","Xiang Bai"],"url":"https://arxiv.org/abs/2202.10304","pdfUrl":"https://arxiv.org/pdf/2202.10304","codeUrl":null,"preprint":{"id":"2202.10304","submittedOn":"2022-02-21","url":"https://arxiv.org/abs/2202.10304"},"publication":{"venue":"IEEE Transactions on Pattern Analysis and Machine Intelligence","shortVenue":"IEEE TPAMI","year":2023,"kind":"journal","url":"https://doi.org/10.1109/tpami.2022.3155612"},"citation":"@misc{textdetectiondbnetpulspuls2022,\n  title = {{Real-Time Scene Text Detection with Differentiable Binarization and Adaptive Scale Fusion}},\n  author = {Minghui Liao and Zhisheng Zou and Zhaoyi Wan and Cong Yao and Xiang Bai},\n  year = {2022},\n  eprint = {2202.10304},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2202.10304}\n}\n","citationPath":"/content/papers/citations/text-detection/dbnet_puls_puls.1fbd29e643ae.bib"},"thumbnail":{"src":"/content/papers/assets/beea09a7541d614949a30d8d5019997d84a3338ed45a09b6bf0e3ff6ea9647ca.jpg","width":1390,"height":404},"locale":"en","path":"/content/papers/en/text-detection/dbnet_puls_puls.4d73bea9fe7c.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"problem-solution","text":"Problem Solution","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"adaptive-scale-fusion","text":"Adaptive Scale Fusion","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-the-original-dbnet","text":"Comparison with the Original DBNet","depth":3},{"id":"visualization","text":"Visualization","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"text-detection/dbnet","relation":"background","topic":"Differentiable binarization for text detection"}]},{"id":"text-detection/dbnet","category":"text-detection","legacyPath":"text-detection/1911-dbnet","legacySlug":"1911-dbnet","legacyPaths":[],"title":"DBNet","subtitle":"Differentiable Binarization Function","author":"Z. Yuan","paperDate":"2019-11-20","publishedOn":"2024-09-13","paperTitle":"Real-time Scene Text Detection with Differentiable Binarization","paperUrl":"https://arxiv.org/abs/1911.08947","bibliography":{"title":"Real-time Scene Text Detection with Differentiable Binarization","authors":["Minghui Liao","Zhaoyi Wan","Cong Yao","Kai Chen","Xiang Bai"],"url":"https://arxiv.org/abs/1911.08947","pdfUrl":"https://arxiv.org/pdf/1911.08947","codeUrl":null,"preprint":{"id":"1911.08947","submittedOn":"2019-11-20","url":"https://arxiv.org/abs/1911.08947"},"publication":{"venue":"AAAI","year":2020,"kind":"conference","url":"https://arxiv.org/abs/1911.08947"},"citation":"@misc{textdetectiondbnet2019,\n  title = {{Real-time Scene Text Detection with Differentiable Binarization}},\n  author = {Minghui Liao and Zhaoyi Wan and Cong Yao and Kai Chen and Xiang Bai},\n  year = {2019},\n  eprint = {1911.08947},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1911.08947}\n}\n","citationPath":"/content/papers/citations/text-detection/dbnet.c65cebf2c87e.bib"},"thumbnail":{"src":"/content/papers/assets/73a1e6296e7d2320f1a6cccee3464096301401ef8edba1128745a2951d63bac2.jpg","width":3914,"height":1342},"locale":"en","path":"/content/papers/en/text-detection/dbnet.ce1188c3e672.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"label-generation","text":"Label Generation","depth":3},{"id":"loss-function","text":"Loss Function","depth":3},{"id":"training-datasets","text":"Training Datasets","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"ablation-study","text":"Ablation Study","depth":3},{"id":"curved-text-detection-results","text":"Curved Text Detection Results","depth":3},{"id":"icdar-2015-results","text":"ICDAR 2015 Results","depth":3},{"id":"visualization-of-results","text":"Visualization of Results","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"text-detection/dbnet_puls_puls","relation":"next","topic":"Differentiable binarization for text detection"}]}],"text":"When writing a literature review of the DBNet series, one question we’ve had is whether to refer to it as DB or DBNet. In the first version of the paper, there was no mention of DBNet, so other research papers simply referred to it as DB. However, in this latest paper, the authors explicitly call their model DBNet, so we will honor their naming convention and refer to this series as DBNet.\n\n## Problem Definition\n\nFollowing up on the previous DBNet paper, the authors recognized room for further improvement in the model. They proposed DBNet++, which builds upon the existing architecture by optimizing the way features are fused.\n\nIf you haven’t read the previous paper, we recommend doing so, as many of the repeated details are omitted here.\n\n- [**[19.11] DBNet: Differentiable Binarization**](/blog/papers/text-detection/dbnet)\n\n## Problem Solution\n\n### Model Architecture\n\n![DBNet++ architecture and ASF module location; original paper Figure 3](/content/papers/assets/beea09a7541d614949a30d8d5019997d84a3338ed45a09b6bf0e3ff6ea9647ca.jpg \"Liao et al., DBNet++, Figure 3, arXiv:2202.10304v1\")\n\nThe overall architecture is almost identical to the first version, so we’ll skip over it. Let’s look directly at this paper’s change: the **Adaptive Scale Fusion Module** highlighted above.\n\n### Adaptive Scale Fusion\n\n![ASF scale weights and spatial attention; original paper Figure 4](/content/papers/assets/12d414776bce3abd144164b3698cc50d6264bff18fa6ab9643b47ae896ff1a93.jpg \"Liao et al., DBNet++, Figure 4, arXiv:2202.10304v1\")\n\nThe Adaptive Scale Fusion (ASF) module, as the authors refer to it, is a new module built upon the foundation of DBNet.\n\nIn the original design, feature maps at different scales were simply concatenated and passed through a convolution layer before the prediction branch. The authors thought this could be more precise: different scales may matter more at different image positions, so the fusion stage should calculate a weight for each scale at each position.\n\nLet’s follow the authors’ process step by step as shown in the image:\n\n1. Resize the four feature maps to the same resolution, concatenate them, and apply a convolution to obtain an intermediate map of size `C × H × W`.\n2. In **Spatial Attention**:\n   1. Average **over channels**, preserving each spatial position, to obtain `1 × H × W`.\n   2. Apply `Conv-ReLU` and `Conv-Sigmoid`, then expand the result back to `C` channels.\n   3. Add it to the intermediate map and apply another `Conv-Sigmoid` to obtain one spatial weight map per scale: `N × 1 × H × W`, where `N = 4`.\n3. Back in **Adaptive Scale Fusion**:\n   1. Expand each scale’s weight across `C` channels and multiply it by that scale’s input feature map.\n   2. Concatenate the four weighted maps along the channel dimension to obtain `(N × C) × H × W`.\n\n\n> [!TIP]\n> \n> This recalls SENet, which learns channel weights. ASF considers both feature scale and spatial position.\n> \n> - [**[17.09] SENet: Squeeze and Excitation**](/blog/papers/lightweight/senet)\n> \n>   ![SENet channel recalibration for comparison; SENet paper Figure 1](/content/papers/assets/322f16ed8c782ffbdd7d7db3e8292c991908e3543dc69e1addd9238e22484363.jpg \"Hu et al., Squeeze-and-Excitation Networks, Figure 1, arXiv:1709.01507v4; not a DBNet++ figure\")\n\n\n## Discussion\n\n### Comparison with the Original DBNet\n\n![Ablation of DB, deformable convolution and ASF; original paper Table I](/content/papers/assets/4a2f1897a013a94c367576cf2e2d9f98db98e71705af23c7bdf525df15065dee.jpg \"Liao et al., DBNet++, Table I, arXiv:2202.10304v1\")\n\nThe authors conducted ablation experiments on the MSRA-TD500 and CTW1500 datasets, testing modules such as Differentiable Binarization (DB), Deformable Convolution, and Adaptive Scale Fusion (ASF).\n\nLet’s focus on the red boxes, which show the effect of adding ASF.\n\nIn the highlighted ResNet-50 rows, both deformable convolution and DB are enabled. Adding ASF leaves MSRA-TD500 precision at **91.5**, while recall rises from **79.2 to 83.3**. On CTW1500, precision rises from **86.9 to 87.9** and recall from **80.2 to 82.8**. In the other settings, precision moves in both directions; false-positive counts require separate inspection.\n\nWith ResNet-50, DB and deformable convolution held fixed, adding ASF increases F-measure from **84.9 to 87.2** on MSRA-TD500 (**2.3 percentage points**) and from **83.4 to 85.3** on CTW1500 (**1.9 percentage points**). The corresponding speeds drop from **32 to 29 FPS** and **22 to 21 FPS**. These rows support ASF’s benefit on both datasets under this setting.\n\n### Visualization\n\n![DB text detection, threshold and probability map examples; original paper Figure 9](/content/papers/assets/e10d49d3dd13e29b3562074f939e13abff44190d5411aa03b1360929e552b801.jpg \"Liao et al., DBNet++, Figure 9, arXiv:2202.10304v1\")\n\nIn each example, the text detection result is on the left, the threshold map is at the upper right, and the probability map is at the lower right. These are examples of DB outputs; this figure alone cannot quantify ASF’s gain.\n\n## Conclusion\n\nMuch of the content in this paper is similar to the previous DBNet, so we won’t go over it in great detail again.\n\nThe Adaptive Scale Fusion module lets the model adjust how strongly it uses features at each scale and position. In the ResNet-50 ablation above, this improves F-measure by roughly two percentage points while modestly reducing inference speed.\n\nAll told, that looks like a pretty good investment!\n","imageSizes":{"/content/papers/assets/beea09a7541d614949a30d8d5019997d84a3338ed45a09b6bf0e3ff6ea9647ca.jpg":{"width":1390,"height":404},"/content/papers/assets/12d414776bce3abd144164b3698cc50d6264bff18fa6ab9643b47ae896ff1a93.jpg":{"width":1262,"height":542},"/content/papers/assets/322f16ed8c782ffbdd7d7db3e8292c991908e3543dc69e1addd9238e22484363.jpg":{"width":1688,"height":394},"/content/papers/assets/4a2f1897a013a94c367576cf2e2d9f98db98e71705af23c7bdf525df15065dee.jpg":{"width":4432,"height":1439},"/content/papers/assets/e10d49d3dd13e29b3562074f939e13abff44190d5411aa03b1360929e552b801.jpg":{"width":1678,"height":772}}}
