JoJoGAN icon indicating copy to clipboard operation
JoJoGAN copied to clipboard

Does not working on cuda:1

Open Mombin opened this issue 2 years ago • 3 comments

Hello. Thank you for providing a greate code.

I have a issue on running prediction.

if i predice on cuda:1, the inference is not working.....

i trace the code step by step and I found "op/fused_act.py" load fused_bias_Act.cpp and fused_bias_act_kernel.cu. that cpp code cannot another gpu...

how can i predict with other gpu?.....

Mombin avatar Jul 15 '22 06:07 Mombin

Same issue, @Mombin have you found a solution yet?

hunghn-dmobin avatar Mar 02 '23 07:03 hunghn-dmobin

@hunghn-dmobin Insert the following keywords into the introduction of your code.

torch.cuda.set_device(device)

then it is working fine.

Mombin avatar Mar 02 '23 07:03 Mombin

Hi @Mombin ,

Exactly where we have to insert this line: torch.cuda.set_device(device), in the model.py ?

image

I have tried like this, but this it is not working for me.

dummyuser-123 avatar Jan 15 '24 12:01 dummyuser-123