Skip to content

Commit

Permalink
fix: Expected all tensors to be on the same device
Browse files Browse the repository at this point in the history
  • Loading branch information
lldacing committed Jan 20, 2025
1 parent 2edefa6 commit b3e2ebf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PulidFluxHook.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def set_model_dit_patch_replace(model, patch_kwargs, key):
to["patches_replace"]["dit"][key].add(pulid_patch, **patch_kwargs)

def pulid_patch(img, pulid_model=None, ca_idx=None, weight=1.0, embedding=None, mask=None, transformer_options={}):
pulid_img = weight * pulid_model.model.pulid_ca[ca_idx](embedding, img)
pulid_img = weight * pulid_model.model.pulid_ca[ca_idx].to(img.device)(embedding, img)
if mask is not None:
pulid_temp_attrs = transformer_options.get(PatchKeys.pulid_patch_key_attrs, {})
latent_image_shape = pulid_temp_attrs.get("latent_image_shape", None)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui_pulid_flux_ll"
description = "The implementation for PuLID-Flux, support use with TeaCache and WaveSpeed, no model pollution."
version = "1.0.5"
version = "1.0.6"
license = {file = "LICENSE"}
dependencies = ['facexlib', 'insightface', 'onnxruntime', 'onnxruntime-gpu; sys_platform != "darwin" and platform_machine == "x86_64"', 'ftfy', 'timm']

Expand Down

0 comments on commit b3e2ebf

Please sign in to comment.