Skip to content

Conversation

@zoopigzoo
Copy link

Problem: When using --device to use "cuda:5" in a multiple GPU machine, the img2img script will stuck in the sleep(1) loop.

Fix: change torch.cuda.memory_allocated() to torch.cuda.memory_allocated(device=opt.device)

@basujindal basujindal merged commit 98df160 into basujindal:main Sep 15, 2022
@basujindal
Copy link
Owner

Hi, thanks for reporting the bug and the PR. It is very helpful!

@doevent
Copy link

doevent commented Sep 15, 2022

Hi. How to use "cuda:1" or "cuda:2" to run img2img_gradio.py?

kylewlacy pushed a commit to kylewlacy/stable-diffusion that referenced this pull request Sep 23, 2022
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

Successfully merging this pull request may close these issues.

3 participants