kkytai commited on
Commit
11d85c0
·
1 Parent(s): d820660

fix: move PuLID components to GPU before ID embedding extraction

Browse files

When offload mode is enabled, PuLID face analysis components stay on CPU.
The _register_character method was calling get_id_embedding without first
moving these components to GPU, causing a device mismatch error:
'Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor)'

Now properly calls components_to_device(cuda) before ID extraction and
moves back to CPU afterwards to maintain memory efficiency.

1 file changed +10
handler.py+10