transformers/tests/models/swin2sr
Marvin Gabler 0a3b9d02fe
#26566 swin2 sr allow in out channels (#26568)
* feat: close #26566, changed model & config files to accept arbitary in and out channels

* updated docstrings

* fix: linter error

* fix: update Copy docstrings

* fix: linter update

* fix: rename num_channels_in to num_channels to prevent breaking changes

* fix: make num_channels_out None per default

* Update src/transformers/models/swin2sr/configuration_swin2sr.py

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>

* fix: update tests to include num_channels_out

* fix:linter

* fix: remove normalization with precomputed rgb values when #input_channels!=#output_channels

---------

Co-authored-by: marvingabler <marvingabler@outlook.de>
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
2023-10-05 15:20:38 +02:00
..
__init__.py Add Swin2SR (#19784) 2022-12-16 16:24:01 +01:00
test_image_processing_swin2sr.py Input data format (#25464) 2023-08-16 17:45:02 +01:00
test_modeling_swin2sr.py #26566 swin2 sr allow in out channels (#26568) 2023-10-05 15:20:38 +02:00