-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable dynamic resolution input for Swin Transformer and variants (#3…
…0656) * add interpolation of positional encoding support to swin * add style changes * use default image processor and make size a dictionary Co-authored-by: amyeroberts <[email protected]> * remove logits testing Co-authored-by: amyeroberts <[email protected]> * Refactor image size validation logic when interpolation is disabled Co-authored-by: amyeroberts <[email protected]> * remove asserts in modeling Co-authored-by: amyeroberts <[email protected]> * add dynamic resolution input support to swinv2 * change size to ensure interpolation encoding path is triggered * set interpolate_pos_encoding default value to False Co-authored-by: amyeroberts <[email protected]> * set interpolate_pos_encoding default value to False Co-authored-by: amyeroberts <[email protected]> * set interpolate_pos_encoding default value to False Co-authored-by: amyeroberts <[email protected]> * set interpolate_pos_encoding default value to False Co-authored-by: amyeroberts <[email protected]> * set interpolate_pos_encoding default value to False Co-authored-by: amyeroberts <[email protected]> * set interpolate_pos_encoding default value to False Co-authored-by: amyeroberts <[email protected]> * set interpolate_pos_encoding default value to False Co-authored-by: amyeroberts <[email protected]> * set interpolate_pos_encoding default value to False * add dynamic resolution input to donut swin * add dynamic resolution input to maskformer swin --------- Co-authored-by: amyeroberts <[email protected]>
- Loading branch information
1 parent
b6eb708
commit 481a957
Showing
6 changed files
with
291 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.