Comments (4)
Debug found that the inability to update is due to an issue with the torch workflow:
The workflow weight did not change to a list, but rather to a float, as follows:
https://github.com/cubiq/ComfyUI_IPAdapter_plus/blob/d33265adf72974213fd4ea9bdbba1d0f176e7658/CrossAttentionPatch.py#L148-L151
# ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus/CrossAttentionPatch.py:161
else:
out_ip = optimized_attention(q, ip_k, ip_v, extra_options["n_heads"])
import pdb; pdb.set_trace()
out_ip = out_ip * weight # I'm doing this to get the same results as before
/data/home/fengwen/quant/ComfyUI/comfy/ldm/modules/attention.py(456)forward()
-> return checkpoint(self._forward, (x, context, transformer_options), self.parameters(), self.checkpoint)
/data/home/fengwen/quant/ComfyUI/comfy/ldm/modules/diffusionmodules/util.py(191)checkpoint()
-> return func(*inputs)
/data/home/fengwen/quant/ComfyUI/comfy/ldm/modules/attention.py(554)_forward()
-> n = attn2_replace_patch[block_attn2](n, context_attn2, value_attn2, extra_options)
/data/home/fengwen/quant/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus/CrossAttentionPatch.py(38)__call__()
-> out = out + callback(out, q, k, v, extra_options, **self.kwargs[i])
> /data/home/fengwen/quant/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus/CrossAttentionPatch.py(164)ipadapter_attention()
-> out_ip = out_ip * weight # I'm doing this to get the same results as before
(Pdb) p
*** SyntaxError: invalid syntax
(Pdb) p weight
1.0
from onediff.
please try it test case @Gutianpei https://github.com/siliconflow/onediff/tree/3aad30db09d13a22c75fee1f11230fcb8562de6a/onediff_comfy_nodes/modules/oneflow/hijack_ipadapter_plus#ipadapter_weights
from onediff.
please try it test case @Gutianpei https://github.com/siliconflow/onediff/tree/3aad30db09d13a22c75fee1f11230fcb8562de6a/onediff_comfy_nodes/modules/oneflow/hijack_ipadapter_plus#ipadapter_weights
The link for the workflow is in the private repo, would you mind to share a public link? Thanks!
from onediff.
I've tested that changing weights is working, thanks for the help! closing this issue
from onediff.
Related Issues (20)
- 请问一下,我现在想要加速sdxl版本的图生图,输入图像的分辨率是任意的,这样情况可以用oneflow加速吗? HOT 1
- ComfyUI IPA: Failed to save graph file & Increased Time Consumption HOT 12
- Is it possible to manually set recompile to false?
- Support for custom attention processor? HOT 1
- oneflow compile error
- Incompatibility with PerturbedAtttentionGuidance (PAG) HOT 2
- No module named 'onediff.infer_compiler.register' HOT 3
- AttributeError: 'OneflowGraph' object has no attribute '_input_op_names'
- failed to start webui with onediff HOT 1
- TypeError: scaled_dot_product_attention(): argument 'query' (position 1) must be Tensor, not Tensor HOT 10
- Found a small problem with the calculation HOT 2
- How to use ModelGraphSaver to save output of ModuleDeepCacheSpeedup HOT 1
- Doc Improve: To use onediff in docker pytorch/pytorch:2.2.2-cuda12.1-cudnn8-runtime you need add LD_LIBRARY_PATH to load libcudnn_cnn_infer.so.8
- Compiled ControlNetModel ignores controlnet_conditioning_scale and control_guidance_end HOT 3
- 有计划支持ComfyUI的PuLID吗? HOT 3
- "LayerNormKernelImpl" not implemented for 'Half'
- IPAdapter + Sliding window in animatediff is not working
- 是否支持Nvidia T4或者L4 GPU? HOT 1
- [Feature request] image_to_image+contorlNet with onediff & deepcache
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onediff.