-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPAdapter + Sliding window in animatediff is not working #904
Labels
Comments
Now you can switch to the fix_comfy_get_weight_subidxs branch, which will be merged into the main branch |
lijunliangTG
added a commit
that referenced
this issue
Jul 23, 2024
…ode (#1020) Issue 904 does not execute properly in graph mode,```weight = torch.Tensor(weight[ad_params["sub_idxs"]])```Because the above code only indexes and reassigns values at run time, this dynamic operation can result in static graph build failures or run-time errors. fixed #904 感谢 @ccssu 对本次PR的帮助。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The weights of ipadapter can be correctly applied! Thanks for the fix! However, I found that the sliding window in animatediff is not working with ipadapter's weight, and it seems the
sub_idxs
below never gets updated.https://github.com/siliconflow/onediff/blob/main/onediff_comfy_nodes/modules/oneflow/infer_compiler_registry/register_comfy/CrossAttentionPatch.py#L108
Your environment
Ubuntu 20.04
OneDiff git commit id
2249010
OneFlow version info
libibverbs not available, ibv_fork_init skipped
path: ['/home/ubuntu/miniconda3/envs/comfy/lib/python3.10/site-packages/oneflow']
version: 0.9.1.dev20240420+cu121
git_commit: 665bcf8
cmake_build_type: Release
rdma: True
mlir: True
enterprise: False
How To Reproduce
The workflow below can reproduce the bug.
onediff_adiff_ipadapter_reproduce.json
The complete error message
No error message noted.
Additional context
Dependency version is followed this pr: #879
ComfyUI-AnimateDiff-Evolved commit id: f9e0343f4c4606ee6365a9af4a7e16118f1c45e1
The text was updated successfully, but these errors were encountered: