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

Position embedding mismatch. #28

Open
zhixue-fang opened this issue Oct 30, 2023 · 1 comment
Open

Position embedding mismatch. #28

zhixue-fang opened this issue Oct 30, 2023 · 1 comment

Comments

@zhixue-fang
Copy link

The position embedding in the ViT-B weight file is for 1024x1024 resolution images. How did the author input the 512x512 resolution image? After I created LoRA_Sam, I tried to input a 512x512 resolution image, but it was prompted that the dimensions of the position embedding did not match.

@hitachinsk
Copy link
Owner

We use bilinear upsample to align the resolution.

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

No branches or pull requests

2 participants