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

Very high GPU memory usage #15

Open
vaishnavm217 opened this issue Jul 16, 2018 · 2 comments
Open

Very high GPU memory usage #15

vaishnavm217 opened this issue Jul 16, 2018 · 2 comments

Comments

@vaishnavm217
Copy link

vaishnavm217 commented Jul 16, 2018

Hi,
I have been running the model using test.py and modified it run multiple files. The GPU memory keeps on increasing,from 3gigs to 9 gigs.
Is this due to poor garbage collection?

@vaishnavm217 vaishnavm217 changed the title Very high memory usage Very high GPU memory usage Jul 16, 2018
@DCNSW
Copy link

DCNSW commented Sep 7, 2018

@clcarwin

@ethanyhzhang
Copy link

@vaishnavm217 in the detect() function, the img of numpy is transformed to torch Variable, as the code shows : img = Variable(torch.from_numpy(img).float(), valotile=True).cuda()
you might notice that valotile is deprecated in the latest version, so just change the code as below to see if it helps:
with torch.no_grad():
img = Variable(torch.from_numpy(img).float()).cuda()
olist = net(img)

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