-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add image-to-image task w/ Swin2SR (for super-resolution) (#381)
* Add `Swin2SRImageProcessor` * Add `RawImage.fromTensor` helper function * Add clamp tensor function * Add support for `.to` data type conversion * Add `round` tensor function * Add support for `mul` tensor function * Fix image padding * Only perform padding if it will affect size * Create basic processors unit test suite * Add SamProcessor test case * Move `CONTENT_TYPE_MAP` outside `RawImage` class * Perform reflective padding for swin2sr models * Add swin2sr models for image super-resolution * Add listed support for Swin2SR models * Add image-to-image pipeline * Add listed support for image-to-image task * Add image-to-image unit tests * Add `add` tensor functions * Generalize `pad_image` helper function * Add more unit tests for image processors * Fix typo
- Loading branch information
Showing
12 changed files
with
679 additions
and
39 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
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.