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

use float in resample_abs_pos_embed_nhwc #1890

Merged
merged 1 commit into from
Jul 29, 2023
Merged

use float in resample_abs_pos_embed_nhwc #1890

merged 1 commit into from
Jul 29, 2023

Conversation

Separius
Copy link
Contributor

I was trying to use SAM with a small image (smaller than 1024) and BFloat16, and I got this error message: "upsample_bilinear2d_out_frame" not implemented for 'BFloat16'
I checked DINOv2's codebase and they also have this conversion here

since F.interpolate doesn't always support BFloat16
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jul 28, 2023

The documentation is not available anymore as the PR was closed or merged.

@rwightman rwightman merged commit 3b8ef3f into huggingface:main Jul 29, 2023
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.

3 participants