mirror of
https://github.com/openai/CLIP.git
synced 2026-01-26 15:29:48 +00:00
Removed another unused f-string (#276)
This commit is contained in:
@@ -419,7 +419,7 @@ def build_model(state_dict: dict):
|
||||
vocab_size = state_dict["token_embedding.weight"].shape[0]
|
||||
transformer_width = state_dict["ln_final.weight"].shape[0]
|
||||
transformer_heads = transformer_width // 64
|
||||
transformer_layers = len(set(k.split(".")[2] for k in state_dict if k.startswith(f"transformer.resblocks")))
|
||||
transformer_layers = len(set(k.split(".")[2] for k in state_dict if k.startswith("transformer.resblocks")))
|
||||
|
||||
model = CLIP(
|
||||
embed_dim,
|
||||
|
||||
Reference in New Issue
Block a user