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

数据集放哪 #27

Open
zhl98 opened this issue Oct 17, 2021 · 8 comments
Open

数据集放哪 #27

zhl98 opened this issue Oct 17, 2021 · 8 comments

Comments

@zhl98
Copy link

zhl98 commented Oct 17, 2021

下载的test2k数据集应该放在什么目录下面

@Xiangtaokong
Copy link
Member

放哪都行,只要修改一下test的yaml里面的路径

@zhl98
Copy link
Author

zhl98 commented Oct 17, 2021

cuda版本有要求么,我发现我在python里可以找到gpu,但在代码运行的时候显示没有cuda
K55W9$HD68 0RQ9E_IOSD5D

@Xiangtaokong
Copy link
Member

只要能正常运行pytorch1.5+就可以

@laonafahaodange
Copy link

cuda版本有要求么,我发现我在python里可以找到gpu,但在代码运行的时候显示没有cuda K55W9$HD68 0RQ9E_IOSD5D

codes\options\options.py
os.environ['CUDA_VISIBLE_DEVICES'] = gpu_list改成os.environ["CUDA_VISIBLE_DEVICES"] = "0"
另外在运行python test_ClassSR.py -opt options/test/test_ClassSR_SRResNet.yml的时候要对应把test_ClassSR.py执行的部分定义成函数(比如main),然后再放到
if name=='main':
main()
执行,可能是因为windows多进程的问题...

@zhl98
Copy link
Author

zhl98 commented Nov 27, 2021

cuda版本有要求么,我发现我在python里可以找到gpu,但在代码运行的时候显示没有cuda K55W9$HD68 0RQ9E_IOSD5D

codes\options\options.py os.environ['CUDA_VISIBLE_DEVICES'] = gpu_list改成os.environ["CUDA_VISIBLE_DEVICES"] = "0" 另外在运行python test_ClassSR.py -opt options/test/test_ClassSR_SRResNet.yml的时候要对应把test_ClassSR.py执行的部分定义成函数(比如main),然后再放到 if name=='main': main() 执行,可能是因为windows多进程的问题...

把cuda设备数设为0确实可以这个问题,但是这样会用cpu进行训练而不是GPU

@msx-123
Copy link

msx-123 commented Jan 14, 2022

我训练时遇到一些问题,在我开始训练后,一直卡在这个地方不训练,请问是你们有遇到这个问题吗?
1
@laonafahaodange @zhl98

@hjdihs
Copy link

hjdihs commented Jun 26, 2023

Did you solve it? I also encountered the same issue. @msx-123

@laonafahaodange
Copy link

我训练时遇到一些问题,在我开始训练后,一直卡在这个地方不训练,请问是你们有遇到这个问题吗? 1 @laonafahaodange @zhl98

不好意思我还没有跑过训练的部分,可以看下GPU是否有占用?或者调试看看

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

5 participants