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

DetrBetterTransformer added, problem with position_embedding_type=sine #684

Closed

Conversation

mszsorondo
Copy link
Contributor

What does this PR do?

It implements BetterTransformer for DETR

Problem

Raises ValueError: Positional embedding type sine not supported for `BetterTransformer` integration at conversion step. BetterTransformer doesn't support sine positional embeddings.

@mszsorondo
Copy link
Contributor Author

@younesbelkada any idea on how to start solving this? I can give it a try

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@younesbelkada
Copy link
Contributor

Hi @mszsorondo
Thanks for your contribution!
You can modify the condition here:

if self.pos_emb_type is not None and self.pos_emb_type != "absolute":
and make it pass for Detr

@mszsorondo mszsorondo closed this Aug 11, 2023
@mszsorondo mszsorondo deleted the DetrBetterTransformer branch August 11, 2023 15:03
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