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
windows下使用pycharm,python解释器部署在SSH linux 服务器上, 运行train.py会出现以下错误
**### **Traceback (most recent call last):
File "/data3/xxx_dataset/YOLOX-main/yolox/exp/build.py", line 13, in get_exp_by_file
current_exp = importlib.import_module(os.path.basename(exp_file).split(".")[0])
File "/home/xxx/anaconda3/envs/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_s'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data3/xxx_dataset/YOLOX-main/tools/train.py", line 125, in
exp = get_exp(args.exp_file, args.name)
File "/data3/xxx_dataset/YOLOX-main/yolox/exp/build.py", line 40, in get_exp
return get_exp_by_file(exp_file)
File "/data3/xxx_dataset/YOLOX-main/yolox/exp/build.py", line 16, in get_exp_by_file
raise ImportError("{} doesn't contains class named 'Exp'".format(exp_file))
ImportError: exps/example/custom/yolox_s.py doesn't contains class named 'Exp'****
windows下使用pycharm,python解释器部署在SSH linux 服务器上, 运行train.py会出现以下错误
**### **Traceback (most recent call last):
File "/data3/xxx_dataset/YOLOX-main/yolox/exp/build.py", line 13, in get_exp_by_file
current_exp = importlib.import_module(os.path.basename(exp_file).split(".")[0])
File "/home/xxx/anaconda3/envs/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_s'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data3/xxx_dataset/YOLOX-main/tools/train.py", line 125, in
exp = get_exp(args.exp_file, args.name)
File "/data3/xxx_dataset/YOLOX-main/yolox/exp/build.py", line 40, in get_exp
return get_exp_by_file(exp_file)
File "/data3/xxx_dataset/YOLOX-main/yolox/exp/build.py", line 16, in get_exp_by_file
raise ImportError("{} doesn't contains class named 'Exp'".format(exp_file))
ImportError: exps/example/custom/yolox_s.py doesn't contains class named 'Exp'****
如果在linux服务器上通过命令行运行,则不会出现这个问题。
windows端以及linux端均已执行pip3 install -v -e . 并且成功。通过pych的linux解释器,运行其他网络比如yolov5等均正常运行。
The text was updated successfully, but these errors were encountered: