Open wangyang581 opened 1 year ago
很多人都遇到这个问题
yes , 此预训练模型对应下面配置文件
Global: debug: false use_gpu: true epoch_num: 20 log_smooth_window: 20 print_batch_step: 1 save_model_dir: /home/aistudio/output/Student/pt save_epoch_step: 20 eval_batch_step:
请问这个·问题解决了吗
@tink2123 can you take a look of this issue?
请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem
我镜像中用相同的数据可以用ch_PP-OCRv4_rec_hgnet.yml配置文件训练,也可以用v3的配置文件训练,只有ch_PP-OCRv4_rec_distill.yml这个配置文件报错。
我采用的ch_PP-OCRv4_rec_distill.yml配置文件的内容如下:
Global: debug: false use_gpu: true epoch_num: 200 log_smooth_window: 20 print_batch_step: 10 save_model_dir: ./output/rec_dkd_400w_svtr_ctc_lcnet_blank_dkd0.1/ save_epoch_step: 40 eval_batch_step:
Student key: head_out multi_head: true Metric: name: DistillationMetric base_metric_name: RecMetric main_indicator: acc key: Student ignore_space: false Train: dataset: name: SimpleDataSet data_dir: ./train_data/lpd_rec label_file_list:
./train_data/lpd_rec/train.txt ratio_list:
1.0 transforms:
DecodeImage: img_mode: BGR channel_first: false
RecAug:
MultiLabelEncode: gtc_encode: NRTRLabelEncode
RecResizeImg: image_shape: [3, 48, 320]
KeepKeys: keep_keys:
./train_data/lpd_rec/test.txt transforms:
DecodeImage: img_mode: BGR channel_first: false
MultiLabelEncode: gtc_encode: NRTRLabelEncode
RecResizeImg: image_shape: [3, 48, 320]
KeepKeys: keep_keys:
请问我要如何修改呢?