WangXingyu

Results 4 issues of WangXingyu

通过引入 global default device 来实现非侵入式 skip init,即用户自定义的 module 类中,创建 parameter、子 module 等时,不需要再传入 device 参数,例如: ```py class CustomModule(nn.Module): def __init__(self, foo, bar, device=None): super().__init__() # ==== Case 1: Module creates parameters...

enhancement
feature
automerge
system
python

对 issue https://github.com/siliconflow/onediff/issues/857 以及 https://github.com/siliconflow/onediff/issues/778 的修复。 #### 说明 修改后,`output_shape = hs[-1]` 是让 `Upsample` 进入到:https://github.com/siliconflow/onediff/blob/4852e8a3aa254ae248e12ce4863d0a332f858a15/onediff_comfy_nodes/modules/oneflow/infer_compiler_registry/register_comfy/openaimodel.py#L20 即最终调用 `interpolate_like` 而非另一个条件下的 `interpolate`。 这样,`DeepCacheUNet / FastDeepCacheUNet` 也与 `UNetModel` 保持一致了:https://github.com/siliconflow/onediff/blob/4852e8a3aa254ae248e12ce4863d0a332f858a15/onediff_comfy_nodes/modules/oneflow/infer_compiler_registry/register_comfy/openaimodel.py#L145

基于 issue https://github.com/siliconflow/onediff/issues/778 做了一些测试。 一、使用 Onediff 的 `ModuleDeepCacheSpeedup` 节点,发现: ``` 启动 ComfyUI: 第一次生成 720 x 720 图片 (成功) -> 第二次生成 728 x 720 图片 (报错重编译) 第一次生成 544 x 544 图片...

sig-comfyui

1. 修复 VaeSpeedup 节点的参数名不一致问题。 2. 在 ModelPatcher 基础上,增加了 VAE、ControlNet 和 ControlLora 的 cache 支持。