mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-24 21:30:15 +08:00
Fix pylint errors (they were real, as they usually are)
This commit is contained in:
parent
d24098cd9b
commit
95a12f42e2
@ -50,7 +50,7 @@ class VideoPositionEmb(nn.Module):
|
|||||||
|
|
||||||
return embeddings
|
return embeddings
|
||||||
|
|
||||||
def generate_embeddings(self, B_T_H_W_C: torch.Size, fps=Optional[torch.Tensor], device=None):
|
def generate_embeddings(self, B_T_H_W_C: torch.Size, fps=Optional[torch.Tensor], device=None, dtype=None, **kwargs):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -580,7 +580,7 @@ class SD_X4Upscaler(BaseModel):
|
|||||||
|
|
||||||
cross_attn = kwargs.get("cross_attn", None)
|
cross_attn = kwargs.get("cross_attn", None)
|
||||||
if cross_attn is not None:
|
if cross_attn is not None:
|
||||||
out['c_crossattn'] = comfy.conds.CONDCrossAttn(cross_attn)
|
out['c_crossattn'] = conds.CONDCrossAttn(cross_attn)
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -973,7 +973,7 @@ class CLIPLoader:
|
|||||||
elif type == "pixart":
|
elif type == "pixart":
|
||||||
clip_type = sd.CLIPType.PIXART
|
clip_type = sd.CLIPType.PIXART
|
||||||
elif type == "cosmos":
|
elif type == "cosmos":
|
||||||
clip_type = comfy.sd.CLIPType.COSMOS
|
clip_type = sd.CLIPType.COSMOS
|
||||||
else:
|
else:
|
||||||
logging.warning(f"Unknown clip type argument passed: {type} for model {clip_name}")
|
logging.warning(f"Unknown clip type argument passed: {type} for model {clip_name}")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user