Skip to content

Pr 1203#1204

Closed
ahmedemam576 wants to merge 2 commits into
mainfrom
pr-1203
Closed

Pr 1203#1204
ahmedemam576 wants to merge 2 commits into
mainfrom
pr-1203

Conversation

@ahmedemam576

Copy link
Copy Markdown
Collaborator

Problem:

RF-DETR version got an update.
Some versions expect 2 values from the backbone, newer ones expect 3(Features, Positions, cross-attn-features [new]).
Our code always returned 2, so tests failed with:
expected 3, got 2.

Fix:

I updated terratorch/models/detr/terratorch_detr.py to support both cases[set the cross-attn-features to None and ignore it in the next steps ].
It now retries once and switches to the right format automatically.

@christian-pinto christian-pinto left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This PR includes code from another PR #1203, please remove that code and push again.

@ahmedemam576 ahmedemam576 marked this pull request as draft July 2, 2026 09:31
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