Skip to content
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

fix Dynamic Indexing and Assignment Operations Fail in Static Graph Mode #1020

Merged
merged 5 commits into from
Jul 23, 2024

Conversation

lijunliangTG
Copy link
Contributor

@lijunliangTG lijunliangTG commented Jul 18, 2024

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

修改之后验证如下:

ui界面 终端界面
image image

感谢 @ccssu 对本次PR的帮助。

@lijunliangTG lijunliangTG requested a review from ccssu July 18, 2024 01:35
@ccssu ccssu self-requested a review July 19, 2024 21:06
@lijunliangTG lijunliangTG enabled auto-merge (squash) July 23, 2024 08:28
@lijunliangTG lijunliangTG merged commit 4b9320e into main Jul 23, 2024
7 checks passed
@lijunliangTG lijunliangTG deleted the fix_comfy_get_weight_subidxs branch July 23, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IPAdapter + Sliding window in animatediff is not working
2 participants