Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docstring of CLIP model #523

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion torchmultimodal/models/clip/image_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ class ResNetForCLIP(nn.Module):
- The final pooling layer is a QKV attention instead of an average pool.
Args:
layers (Tuple[int]):
layers (Tuple[int]): number of residual blocks in each stage.
of the ResNet architecture
output_dim (int): dimension of output tensor
heads (int): number of heads in the attention pooling layer
input_resolution (int): resolution of image input to encoder
Expand Down
2 changes: 1 addition & 1 deletion torchmultimodal/models/clip/text_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CLIPTextEncoder(nn.Module):
Args:
embedding_dim (int): Embedding dimension for text and image encoders projections.
context_length (int): Maximum sequence length for Transforer.
context_length (int): Maximum sequence length for Transformer.
vocab_size (int): Vocab size.
width (int): Embedding dimension for Transformer encoder.
dim_feedforward (int): Dimension of the feedfoward networks.
Expand Down
Loading