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

How to disable using two GPUs for training? #134

Open
davidvct opened this issue Jan 31, 2023 · 0 comments
Open

How to disable using two GPUs for training? #134

davidvct opened this issue Jan 31, 2023 · 0 comments

Comments

@davidvct
Copy link

davidvct commented Jan 31, 2023

I have two GPUs on the computer. I am training SwinIR for denoising, it ran on two GPUs, even though I specified one or no GPU in the json file. I also tried setting the 'dist' to false, but it still ran on both GPUs.

I tried to specified which GPU to use in main_train_psnr.py as well, but got the same result:

def main():
    print("----project SwinIR------")

    os.environ["CUDA_DEVICES_ORDER"] = "PCI_BUS_ID"
    os.environ["CUDA_VISIBLE_DEVICES"] = '1'

I want to use only 1 GPU, if I can specified which GPU that would be nice.

Thanks.

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

1 participant