mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-13 07:47:06 +08:00
Get input channels from unet_config
This commit is contained in:
parent
b4526d3fc3
commit
c2fc3b1617
@ -712,7 +712,7 @@ class Flux(BaseModel):
|
||||
super().__init__(model_config, model_type, device=device, unet_model=comfy.ldm.flux.model.Flux)
|
||||
|
||||
def concat_cond(self, **kwargs):
|
||||
num_channels = self.diffusion_model.img_in.weight.shape[1] // (self.diffusion_model.patch_size * self.diffusion_model.patch_size)
|
||||
num_channels = self.model_config.unet_config["in_channels"]
|
||||
out_channels = self.model_config.unet_config["out_channels"]
|
||||
|
||||
if num_channels <= out_channels:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user