Skip to content

Recommended Train input image size #12149

@agzeroo

Description

@agzeroo

hello.
I am training and fine-tuning the models below.

  • detection: en_PP-OCRv3_det_distill_train(det_mv3_db.yml)
  • recognition: custom_v3_en_mobile(en_PP-OCRv3_rec.yml)
  • classification: ch_ppocr_mobile_v2.0_cls_train(cls_mv3.yml)

It may be necessary to adjust the size of the image for better performance.
I would like to know about the training input image size for detection, recognition, and classification.
From what I researched, it seems that the input image size in the yml file is as follows.

**Detection
Q1. What is the function of Train's 'EastRandomCropData' in detection? Since the maximum image size is 640,640, will anything exceeding that size be cropped? So what happens when it is less than 640,640?

Q2. What does 'DetResizeForTest' mean in Eval? Is there a reason it is different from the training image size?**

image
image

- Recognition
Q3. What does each mean in image_shape? 3: Channel, 48: Height, 320: Width. Is that right?

image

-Classification
Q4 : Channel, 48: Height, 192: Width. Is that right?

image

Q5. Is it possible to change the size of each input image? I want to train words, not sentences.

I would appreciate your reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions