You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "g:\pythonproject\yolox-main\yolox\exp\build.py", line 15, in get_exp_by_file
current_exp = importlib.import_module(os.path.basename(exp_file).split(".")[0])
File "C:\Users\xiaoma\Anaconda3\envs\Swin\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'yolox_voc_s'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tools/train.py", line 110, in
exp = get_exp(args.exp_file, args.name)
File "g:\pythonproject\yolox-main\yolox\exp\build.py", line 54, in get_exp
return get_exp_by_file(exp_file)
File "g:\pythonproject\yolox-main\yolox\exp\build.py", line 19, in get_exp_by_file
raise ImportError("{} doesn't contains class named 'Exp'".format(exp_file))
ImportError: g:\Pythonproject\YOLOX-main\exps\example\yolo_voc\yolox_voc_s.py doesn't contains class named 'Exp'
(Swin) G:\Pythonproject\YOLOX-main>
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "/home/dwt/MyCode/pycharm_projects/YOLOX/yolox/exp/build.py", line 14, in get_exp_by_file
current_exp = importlib.import_module(os.path.basename(exp_file).split(".")[0])#importlib.import_module()导入括号内给出的python文件 ; os.path.basename()返回path最后的文件名。
File "/home/dwt/anaconda3/envs/fbnet_yolox/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'yolox_voc_s'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tools/train.py", line 143, in
exp = get_exp(args.exp_file, args.name)#这里返回了类Exp,首先通过get_exp()函数找到实现储存着事先定义好的yolox训练配置的python文件,并且其中对训练的配置全部写在名为Exp的类定义中
File "/home/dwt/MyCode/pycharm_projects/YOLOX/yolox/exp/build.py", line 42, in get_exp
return get_exp_by_file(exp_file)
File "/home/dwt/MyCode/pycharm_projects/YOLOX/yolox/exp/build.py", line 18, in get_exp_by_file
raise ImportError("{} doesn't contains class named 'Exp'".format(exp_file))
ImportError: /exps/example/yolox_voc/yolox_voc_s.py doesn't contains class named 'Exp'
Traceback (most recent call last):
File "g:\pythonproject\yolox-main\yolox\exp\build.py", line 15, in get_exp_by_file
current_exp = importlib.import_module(os.path.basename(exp_file).split(".")[0])
File "C:\Users\xiaoma\Anaconda3\envs\Swin\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'yolox_voc_s'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tools/train.py", line 110, in
exp = get_exp(args.exp_file, args.name)
File "g:\pythonproject\yolox-main\yolox\exp\build.py", line 54, in get_exp
return get_exp_by_file(exp_file)
File "g:\pythonproject\yolox-main\yolox\exp\build.py", line 19, in get_exp_by_file
raise ImportError("{} doesn't contains class named 'Exp'".format(exp_file))
ImportError: g:\Pythonproject\YOLOX-main\exps\example\yolo_voc\yolox_voc_s.py doesn't contains class named 'Exp'
(Swin) G:\Pythonproject\YOLOX-main>
The text was updated successfully, but these errors were encountered: