Skip to main content
QUICK REVIEW

[Paper Review] 1st Place Solution to ICDAR 2021 RRC-ICTEXT End-to-end Text Spotting and Aesthetic Assessment on Integrated Circuit

Qiyao Wang, Pengfei Li|arXiv (Cornell University)|Apr 8, 2021
Handwritten Text Recognition TechniquesComputer Science7 references5 citations
TL;DR

This paper presents a first-place solution to the ICDAR 2021 RRC-ICTEXT challenge, combining end-to-end text spotting and aesthetic assessment on integrated circuit images using a YOLOv5-based model. The approach employs data augmentation, synthetic data generation, semi-supervised learning, knowledge distillation with a masked loss, and TensorRT deployment to achieve 59.1 mAP (rank 1) on task 3.1 and 78.7% F2 score (rank 1) on task 3.2 with 31 FPS and 306MB memory.

ABSTRACT

This paper presents our proposed methods to ICDAR 2021 Robust Reading Challenge - Integrated Circuit Text Spotting and Aesthetic Assessment (ICDAR RRC-ICTEXT 2021). For the text spotting task, we detect the characters on integrated circuit and classify them based on yolov5 detection model. We balance the lowercase and non-lowercase by using SynthText, generated data and data sampler. We adopt semi-supervised algorithm and distillation to furtherly improve the model's accuracy. For the aesthetic assessment task, we add a classification branch of 3 classes to differentiate the aesthetic classes of each character. Finally, we make model deployment to accelerate inference speed and reduce memory consumption based on NVIDIA Tensorrt. Our methods achieve 59.1 mAP on task 3.1 with 31 FPS and 306M memory (rank 1), 78.7\% F2 score on task 3.2 with 30 FPS and 306M memory (rank 1).

Motivation & Objective

  • Address the imbalance between lowercase and non-lowercase characters in integrated circuit text spotting datasets.
  • Improve model generalization and accuracy using semi-supervised learning on 3,000 unannotated samples.
  • Integrate aesthetic assessment into the detection pipeline by adding a 3-class classification head for blur, low contrast, and broken text.
  • Optimize inference speed and memory consumption to meet the 3S score criteria in task 3.1 and 3.2, achieving top rankings.
  • Deploy the final model using NVIDIA TensorRT to accelerate inference and reduce memory usage while maintaining high accuracy.

Proposed method

  • Utilize YOLOv5s as the student model and YOLOv5x as the teacher model, applying knowledge distillation with a mask to prioritize rare classes.
  • Apply a masked knowledge distillation loss defined as $\text{loss}_{\text{distillation}} = \text{MSE}(f_t*\text{mask}, f_s*\text{mask}) + \text{KL}(f_{t-\text{cls}}, f_{s-\text{cls}})$, where the mask focuses on high-iou predictions for rare classes.
  • Generate synthetic lowercase characters using white-colored Windows fonts and style transfer techniques to balance class distribution.
  • Implement repeat factor sampling (RFS) and data augmentation (Mosaic, histogram equalization, 90°-rotations) to improve robustness.
  • Use weighted ensemble of predictions (WBF) with pseudo-labeling on validation data for semi-supervised learning.
  • Deploy the final YOLOv5s model using NVIDIA TensorRT with input size 672×672, batch size 1, and NMS threshold 0.1 to optimize speed and memory.

Experimental results

Research questions

  • RQ1How can class imbalance between lowercase and non-lowercase characters be effectively mitigated in integrated circuit text spotting?
  • RQ2To what extent can semi-supervised learning improve model performance when only 3,000 unannotated samples are available?
  • RQ3Can a unified detection and classification head effectively predict both character recognition and aesthetic quality?
  • RQ4How does knowledge distillation with a class-aware mask improve performance of a smaller student model compared to standard distillation?
  • RQ5What trade-offs exist between model size, inference speed, and accuracy in real-world deployment, and how can they be optimized?

Key findings

  • The final model achieved 59.1 mAP on task 3.1 with 31 FPS and 306MB GPU memory, securing rank 1 in the benchmark.
  • For task 3.2, the model achieved 78.7% F2 score with 29.68 FPS and 305.88MB memory, also ranking first.
  • Knowledge distillation with a mask improved the mAP of YOLOv5s from 58.5% to 59.4% on validation data, outperforming standard distillation.
  • Synthetic data generation increased the number of lowercase characters by 4.4k, significantly improving AP for rare classes.
  • TensorRT deployment reduced memory consumption from 745.75MB (PyTorch) to 305.88MB and increased inference speed from 25.45 FPS to 31.04 FPS on task 3.1.
  • The 3S score reached 0.74 for task 3.1 and 0.85 for task 3.2, demonstrating superior optimization of speed, size, and accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.