MiniBullLab/easy_ai

maximum recursion depth exceeded in comparison

Closed this issue · 0 comments

拉取最新代码,训练分类报错:

python3 easyai/train_task.py -t classify -i ../../data/cls/ImageSets/train.txt -v ../../data/cls/ImageSets/val.txt -m classnet -p ./easy_tools/data/classnet.pt -c .easy_log/config/classify_config.json 

报错如下:

Traceback (most recent call last):
  File "easyai/train_task.py", line 56, in main
    train_task.train(options.model, 0, options.config_path, options.pretrainModel)
  File "easyai/train_task.py", line 31, in train
    task.train(self.train_path, self.val_path)
  File "/easy_data/code/easy_ai/easyai/tasks/cls/classify_train.py", line 62, in train
    raise e
  File "/easy_data/code/easy_ai/easyai/tasks/cls/classify_train.py", line 59, in train
    self.test(val_path, epoch, save_model_path)
  File "/easy_data/code/easy_ai/easyai/tasks/cls/classify_train.py", line 132, in test
    precision, average_loss = self.classify_test.test(val_path, epoch)
  File "/easy_data/code/easy_ai/easyai/tasks/cls/classify_test.py", line 37, in test
    top1 = self.evaluation.get_top1()
  File "/easy_data/code/easy_ai/easyai/evaluation/classify_accuracy.py", line 53, in get_top1
    self.print_evaluation()
  File "/easy_data/code/easy_ai/easyai/evaluation/classify_accuracy.py", line 85, in print_evaluation
    print('prec1: {:.3f} \t'.format(self.get_top1()))
RecursionError: maximum recursion depth exceeded in comparison