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

updated readme for vit #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mosesdaudu001
Copy link
Contributor

Updated Vit with better usage example

@@ -50,6 +50,30 @@ Getting started
# Instantiate vit_h_14 model
ivy_vit_h_14 = vit_h_14(pretrained=True)

# Convert the Torch image tensor to an Ivy tensor and adjust dimensions
img = ivy.asarray(torch_img.permute((0, 2, 3, 1)), dtype="float32", device="gpu:0")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! Really sorry for the late review here, it slipped through somehow 😅
Just a small detail, could you please load an image (or the nparray file, whichever is relevant) from the image folder in the repo, and update the returned results if necessary? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants