MiniBullLab / easy_ai

3 stars 1 forks source link

在easy_tools运行classnet报错 #89

Closed MiniBullLab closed 3 years ago

MiniBullLab commented 3 years ago

在easy_tools运行classnet报错,运行命令如下:

python easyai/train_task.py -t classify -i tests/.dataset/classnet_flower_2class_jpg/ImageSets/train.txt -v tests/.dataset/classnet_flower_2class_jpg/ImageSets/val.txt -m classnet

报错如下:

Traceback (most recent call last):
  File "easy_tools/easy_ai.py", line 8, in <module>
    from easy_tools.easyai_train import EasyAiModelTrain
  File "/home/wfw/workspace/EDGE/easy_ai/easy_tools/easyai_train.py", line 7, in <module>
    from easyai.train_task import TrainTask
  File "/home/wfw/workspace/EDGE/easy_ai/easyai/train_task.py", line 5, in <module>
    from easyai.tasks.utility.task_registry import REGISTERED_TRAIN_TASK
  File "/home/wfw/workspace/EDGE/easy_ai/easyai/tasks/__init__.py", line 12, in <module>
    from . import rec_text
  File "/home/wfw/workspace/EDGE/easy_ai/easyai/tasks/rec_text/__init__.py", line 3, in <module>
    from . import recognize_text_test
  File "/home/wfw/workspace/EDGE/easy_ai/easyai/tasks/rec_text/recognize_text_test.py", line 14, in <module>
    class Pose2dTest(BaseTest):
  File "/home/wfw/workspace/EDGE/easy_ai/easyai/utility/registry.py", line 73, in deco
    self._register_module(cls, cls_name)
  File "/home/wfw/workspace/EDGE/easy_ai/easyai/utility/registry.py", line 66, in _register_module
    "{} is already registered in {}".format(cls_name, self.name)
KeyError: 'pose2d is already registered in test_task'
lpj0822 commented 3 years ago

先不测了