Fix pylint errors (they were real, as they usually are)

This commit is contained in:
doctorpangloss 2025-01-28 17:16:15 -08:00
parent d24098cd9b
commit 95a12f42e2
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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}")