Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named '.home' #89

Closed
emanlee opened this issue Nov 12, 2023 · 2 comments
Closed

ModuleNotFoundError: No module named '.home' #89

emanlee opened this issue Nov 12, 2023 · 2 comments

Comments

@emanlee
Copy link

emanlee commented Nov 12, 2023

作者,您好!
我们运行以下这步训练模型(下面加粗的代码),出现错误。 我们之前已经跑过了 python scripts/data_preparation/METR-LA/generate_training_data.py

python experiments/train.py -c /home/xq/BasicTS-master/baselines/MLP/MLP_METR-LA.py --gpus '0'
2023-11-12 21:09:25,090 - easytorch-launcher - INFO - Launching EasyTorch training.
Traceback (most recent call last):
File "/home/xq/BasicTS-master/experiments/train.py", line 25, in
launch_training(args.cfg, args.gpus)
File "/home/xq/BasicTS-master/basicts/launcher.py", line 30, in launch_training
easytorch.launch_training(cfg=cfg, devices=gpus, node_rank=node_rank)
File "/home/mytool/anaconda3/envs/basicts/lib/python3.9/site-packages/easytorch/launcher/launcher.py", line 59, in launch_training
cfg = init_cfg(cfg, node_rank == 0)
File "/home/mytool/anaconda3/envs/basicts/lib/python3.9/site-packages/easytorch/config/utils.py", line 210, in init_cfg
cfg = import_config(cfg, verbose=save)
File "/home/mytool/anaconda3/envs/basicts/lib/python3.9/site-packages/easytorch/config/utils.py", line 173, in import_config
cfg = import(path, fromlist=[cfg_name]).CFG
ModuleNotFoundError: No module named '.home'

@zezhishao
Copy link
Owner

感谢您的建议!-c后面的路径目前只能支持相对路径,后续我再README中强调一下。

@emanlee
Copy link
Author

emanlee commented Nov 26, 2023

谢谢您的回复!问题解决了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants