You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the ResNet-50 classification network with an image size of [1, 3, 480, 1024] for inference using the eval mode, the GPU memory consumption is close to 11 GB. Is this normal?
with torch.no_grad():
self.model = init_model(config, checkpoint)
tensor = torch.randn(1, 3, 480, 1024).to('cuda:0').half()
data = {'img': tensor}
for i in range(10):
_ = self.model(return_loss=False, **data)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I use the ResNet-50 classification network with an image size of [1, 3, 480, 1024] for inference using the eval mode, the GPU memory consumption is close to 11 GB. Is this normal?
Beta Was this translation helpful? Give feedback.
All reactions