-
Notifications
You must be signed in to change notification settings - Fork 21
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
在自己的环境里训练不起来 #5
Comments
按照conda环境配置了一遍,可以使用语句‘python train.py --config config.yaml’ 训练起来,之前应该是环境问题 |
你好,我在运行train.py的时候,出现了这个报错,你在运行代码的时候遇到过吗? |
torchtext 没装或者版本不对吧 |
感谢,这个问题我已经解决了。 |
您好想问下您用的设备是什么,我用两块4090还会爆显存?我不是很理解哪里出了问题。conda install pytorch=1.8.1 torchvision=0.2.2 cudatoolkit=11.1 pillow=8.4.0 -c pytorch -c nvidia training dependencyconda install pytorch-lightning=1.4.9 torchmetrics=0.6.0 -c conda-forge是根据作者环境配置的。 |
在docker中执行,按照代码要求安装了环境
执行训练语句,提示需要添加subcommand语句,添加fit后报错:
python train.py --config config.yaml fit /opt/conda/lib/python3.6/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.2) or chardet (3.0.4) doesn't match a supported version! RequestsDependencyWarning) usage: train.py [-h] [--config CONFIG] [--print_config[=flags]] {fit,validate,test,predict,tune} ... train.py: error: Configuration check failed :: Key "fit.model.self_coverage" is required but not included in config object or its value is None.
The text was updated successfully, but these errors were encountered: