This is a ComfyUI model merge node for Z-Image.
It's almost identical to the standard ModelMerge node, but none of them perform any operations on the refiner layer; they output the model1 value as is. Use this when modifying the refiner layer is inconvenient.
I've also added a multiplier to ModelMergeAdd. This is a multiplier applied to the model2 value. It's the same as ModelMergeSubstract; when the difference is input as model2, the product of the two values is actually used. This means it can multiply up to 100 times, but in reality, around 20 times is probably the practical limit. I set it because calculations suggested a 100x multiplier might be necessary in some cases, but in practice, that wasn't needed. However, there are still situations where it's necessary. -1 might also be useful.
In ModelMergeSubstract, turning on the report will display a summary of the process (this takes a very long time). Recommended multipliers are also displayed, but please take them with a grain of salt if the values are too large. A maximum of around 20 seems to be within the practical range. Values exceeding 10.0 should be set in conjunction with the aforementioned ModelMergeAdd.
ComfyUI\custom_nodes\zimage_merge_nodes
init.py
nodes.pyIt can be found in the menu under advanced->model_merging.
