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

PerceptualLoss uses memory on GPU 0 when specified otherwise #44

Closed
FeliMe opened this issue May 8, 2020 · 1 comment
Closed

PerceptualLoss uses memory on GPU 0 when specified otherwise #44

FeliMe opened this issue May 8, 2020 · 1 comment

Comments

@FeliMe
Copy link

FeliMe commented May 8, 2020

When running PerceptualLoss on a machine with multiple GPUs, it always uses some memory of GPU 0, even when gpu_ids specifies another one.

Minimal example to reproduce:

import models
from time import sleep

model = models.PerceptualLoss(model='net-lin', net='vgg', gpu_ids=[2])
sleep(20)

Bildschirmfoto 2020-05-08 um 17 10 15

@richzhang
Copy link
Owner

Hi, perhaps a quick fix is to do export CUDA_VISIBLE_DEVICES=2 on the command lind

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

2 participants