PhotoMaker icon indicating copy to clipboard operation
PhotoMaker copied to clipboard

I have an AMD graphics card, hope someone could help me.

Open Reshex opened this issue 1 year ago • 7 comments
trafficstars

Whenever I am running gui.bat i am getting this error: Pipelines loaded with dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference.|

Beacuse i am running an AMD gpu the "cuda" option inside the torch_dtype function does not work for me. but sadly i don't know what to change it into.

Moreover when i am going inside my local url and trying to generate an image a different error message pops in terminal: return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled) RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'

hope somebody could help me please <3

Reshex avatar Jan 22 '24 15:01 Reshex

Hope too..

Paper99 avatar Jan 22 '24 15:01 Paper99

Hope too..

Does it mean that there is no option for AMD GPU to run this?

Reshex avatar Jan 23 '24 15:01 Reshex

Does it mean that there is no option for AMD GPU to run this?

AMD 7900 XT/XTX runs code from this repo without any source modifications and they are detected as cuda compatible in PyTorch.

bigcat88 avatar Feb 18 '24 11:02 bigcat88

Does it mean that there is no option for AMD GPU to run this?

AMD 7900 XT/XTX runs code from this repo without any source modifications and they are detected as cuda compatible in PyTorch.

I have 6900 XT, Does it mean i have to use modifications? and if so what are those in order for it to work?

Reshex avatar Feb 18 '24 18:02 Reshex

Does PyTorch detects your card as cuda? If yes, then it should be compatible.

Something like:

>>> import torch

print(torch.cuda.is_available())

bigcat88 avatar Feb 18 '24 18:02 bigcat88

Does PyTorch detects your card as cuda? If yes, then it should be compatible.

Something like:

>>> import torch

print(torch.cuda.is_available())

I don't think that pytorch detects my card as cuda. That is the main problem

Reshex avatar Feb 18 '24 18:02 Reshex