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

Testimg把no-cuda修改为True之后仍然报cuda out of memory #228

Open
pengzha0 opened this issue Jan 14, 2022 · 2 comments
Open

Testimg把no-cuda修改为True之后仍然报cuda out of memory #228

pengzha0 opened this issue Jan 14, 2022 · 2 comments

Comments

@pengzha0
Copy link

image
image
理论上此时我用CPU训练了,但是仍然报Cuda 错误
image

@JiaRenChang
Copy link
Owner

Hi, @woshiniqiangdadebaba
您可以把nn.DataParallel也comment看看

@jangsooyoung
Copy link

change batch_size <===

ex)
TrainImgLoader = torch.utils.data.DataLoader(
DA.myImageFloder(all_left_img,all_right_img,all_left_disp, True),
batch_size= 2, shuffle= True, num_workers= 2, drop_last=False) #batch_size= 12, shuffle= True, num_workers= 8, drop_last=False)

TestImgLoader = torch.utils.data.DataLoader(
DA.myImageFloder(test_left_img,test_right_img,test_left_disp, False),
batch_size= 2, shuffle= False, num_workers= 2, drop_last=False) #batch_size= 8, shuffle= False, num_workers= 4, drop_last=False)

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

3 participants