笔记本1050ti运行DLinear模型遇到的问题

1、windows没法运行sh

git bash可以,但我需要在conda环境中,使用sh运行脚本,所以应该在安装conda后,先配环境变量,然后在git bash窗口中执行 conda init bash,就可以用在bash窗口中通过conda activate进入conda环境了。

2、运行sh,报错加载不到模块

看报错最后一行上面的模块,pip uninstall 他 ,再重新安装即可。
https://blog.csdn.net/shuiyixin/article/details/90370588

3、多进程错误,在训练函数最外面加个if name == 'main'即可

https://blog.csdn.net/u014546828/article/details/109235539

4、页文件太小,分配大点,重启电脑

autoformer用了48g虚拟内存,才开始训练,我给他分了40g。
https://blog.csdn.net/weixin_46133643/article/details/125042903

5、训练半天gpu没反应,发现pycharm运行脚本时torch能识别gpu,git bash里启动conda环境运行sh脚本时,torch识别不了gpu

论文代码默认4个gpu,笔记本是一个,要在shell脚本顶端改成=0,就可以了。
https://blog.csdn.net/ZHL_562765/article/details/129287404

posted @ 2024-04-27 11:28  zhaot1993  阅读(16)  评论(0编辑  收藏  举报