mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 13:20:12 +06:00
break style
This commit is contained in:
parent
7c58336949
commit
1a58d86295
@ -51,6 +51,15 @@ def clip_loss(similarity: torch.Tensor) -> torch.Tensor:
|
|||||||
return (caption_loss + image_loss) / 2.0
|
return (caption_loss + image_loss) / 2.0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
# Copied from transformers.models.clip.modeling_clip.CLIPOutput with CLIP->AltCLIP
|
# Copied from transformers.models.clip.modeling_clip.CLIPOutput with CLIP->AltCLIP
|
||||||
class AltCLIPOutput(ModelOutput):
|
class AltCLIPOutput(ModelOutput):
|
||||||
|
Loading…
Reference in New Issue
Block a user