Open enzyme69 opened 10 months ago
It would run on cpu without mps support for apple M1/2/3 chip. Try to modify the PhotoMakerNode.py, replace the code with below. I didn't test too much, but it seems work fine on my M1 macmini 16Gb.
if torch.backends.mps.is_available(): device = "mps" elif torch.cuda.is_available(): device = "cuda" else: device = "cpu"
Tried running this on macOS M2 32 GB... seems to run after few hickups, but it took almost 6 hours and then nothing, no result.
Prompt executed in 0.02 seconds got prompt Loading PhotoMaker components [1] id_encoder from [/Users/username/pinokio/api/comfyui.pinokio.git/ComfyUI/custom_nodes/ComfyUI-PhotoMaker/models]... Loading PhotoMaker components [2] lora_weights from [/Users/username/pinokio/api/comfyui.pinokio.git/ComfyUI/custom_nodes/ComfyUI-PhotoMaker/models] 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 25/25 [5:54:50<00:00, 851.61s/it]