54rt1n / ComfyUI-DareMerge

ComfyUI powertools for SD1.5 and SDXL model merging
GNU General Public License v3.0
68 stars 10 forks source link

RuntimeError: expected scalar type float but found c10::Half #6

Closed a-ru2016 closed 9 months ago

a-ru2016 commented 9 months ago

I'm using --force-fp16 for command line arguments. Could you make it compatible with fp16? It happened when I tried to use a mask. ComfyUI/custom_nodes/ComfyUI-DareMerge/components/dare_mbw.py", line 114, in merge sparsified_delta = torch.where(mask.to(device), sparsified_delta.to(device), merged_a.to(device)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: expected scalar type float but found c10::Half