Skip to content

RecursionError: maximum recursion depth exceeded while calling a Python object while training recognition model #13785

Closed Answered by GreatV
mnansaryapsis asked this question in Q&A
Discussion options

You must be logged in to vote

There's something wrong with your configuration file. The train section has both AttnLabelEncode and CTCLabelEncode, but nothing in the val section.

Global:
  use_gpu: True
  use_space_char: False
  character_dict_path: ./train_data/data/mixed_dict.txt
  epoch_num: 20
  log_smooth_window: 20
  print_batch_step: 10
  save_model_dir: ./output/rec/svtr/
  save_epoch_step: 1
  # evaluation is run every 5 iterations after the 0th iteration
  eval_batch_step: [0, 5]
  cal_metric_during_train: True
  pretrained_model: 
  checkpoints:
  save_inference_dir:
  use_visualdl: False
  infer_img: doc/imgs_words_en/word_10.png
  max_text_length: 40
  infer_mode: False
  save_res_path: ./output/rec/predi…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mnansaryapsis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants