Skip to content

Commit

Permalink
[README]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Dec 30, 2023
1 parent 2992fae commit f43df2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,22 @@ from qformer import QFormer
x = torch.randn(
1, 32, 512
) # Create a random tensor of shape (1, 32, 512)

img = torch.randn(
1, 32, 512
) # Create another random tensor of shape (1, 32, 512)

qformer = QFormer(
512, 8, 8, 0.1, 2, 2
) # Create an instance of the QFormer model

y = qformer(
x, img
) # Apply the QFormer model to the input tensors x and img

print(y.shape) # Print the shape of the output tensor y


```


Expand Down
3 changes: 3 additions & 0 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
x = torch.randn(
1, 32, 512
) # Create a random tensor of shape (1, 32, 512)

img = torch.randn(
1, 32, 512
) # Create another random tensor of shape (1, 32, 512)

qformer = QFormer(
512, 8, 8, 0.1, 2, 2
) # Create an instance of the QFormer model

y = qformer(
x, img
) # Apply the QFormer model to the input tensors x and img

print(y.shape) # Print the shape of the output tensor y

0 comments on commit f43df2b

Please sign in to comment.