Yulun Zhang, Xiaokang Yang, Jinjin Gu, Linghe Kong, Zheng Chen, Yu Fisher
We lifted 17 functions out of this paper's own repositories and ran 9 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| zhengchen1999/dat | canonical | 9 of 12 |
| zhengchen1999/DAT | — | 0 of 5 |
| Function | Status | Where it lives |
|---|---|---|
| flow_warp | Ran | zhengchen1999/dat/basicsr/archs/arch_util.py code served (permissive licence) · get_code("ef9faf68f492a375") |
| get_position_from_periods | Ran | zhengchen1999/dat/basicsr/models/lr_scheduler.py code served (permissive licence) · get_code("cd569444547de84f") |
| img2windows | Ran | zhengchen1999/dat/basicsr/archs/dat_arch.py code served (permissive licence) · get_code("15c613ecceb6aa71") |
| insert_bn | Ran | zhengchen1999/dat/basicsr/archs/vgg_arch.py code served (permissive licence) · get_code("5360d45b71ae2bb1") |
| make_layer | Ran | zhengchen1999/dat/basicsr/archs/arch_util.py code served (permissive licence) · get_code("96ad5dc9ca239aec") |
| master_only | Ran | zhengchen1999/dat/basicsr/utils/dist_util.py code served (permissive licence) · get_code("f6b0e1eb5b7df3e3") |
| reorder_image | Ran | zhengchen1999/dat/basicsr/metrics/metric_util.py code served (permissive licence) · get_code("95067518dc16b3e5") |
| resize_flow | Ran | zhengchen1999/dat/basicsr/archs/arch_util.py code served (permissive licence) · get_code("5a1d8458dc7077a6") |
| windows2img | Ran | zhengchen1999/dat/basicsr/archs/dat_arch.py code served (permissive licence) · get_code("8cb23a62748d3b1c") |
| Adaptive_Channel_Attention | Not yet run | zhengchen1999/DAT/basicsr/archs/dat_arch.py code served (permissive licence) · get_code("c7d43bba6b42f357") |
| Adaptive_Spatial_Attention | Not yet run | zhengchen1999/DAT/basicsr/archs/dat_arch.py code served (permissive licence) · get_code("eb1bcc92fa12ac09") |
| DAT | Not yet run | zhengchen1999/DAT/basicsr/archs/dat_arch.py code served (permissive licence) · get_code("4b1b9c3dd99587cd") |
| DATB | Not yet run | zhengchen1999/DAT/basicsr/archs/dat_arch.py code served (permissive licence) · get_code("84c1383fd9c16d18") |
| ResidualGroup | Not yet run | zhengchen1999/DAT/basicsr/archs/dat_arch.py code served (permissive licence) · get_code("f4d1f0c3893d9aaa") |
| reduce_loss | Not yet run | zhengchen1999/dat/basicsr/losses/loss_util.py code served (permissive licence) · get_code("a648a03a952822c0") |
| weight_reduce_loss | Not yet run | zhengchen1999/dat/basicsr/losses/loss_util.py code served (permissive licence) · get_code("1ba39317ea81871a") |
| weighted_loss | Not yet run | zhengchen1999/dat/basicsr/losses/loss_util.py code served (permissive licence) · get_code("cf63f8afc13f62a7") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Transformer has recently gained considerable popularity in low-level vision tasks, including image superresolution (SR). These networks utilize self-attention along different dimensions, spatial or channel, and achieve impressive performance. This inspires us to combine the two dimensions in Transformer for a more powerful representation capability. Based on the above idea, we propose a novel Transformer model, Dual Aggregation Transformer (DAT), for image SR. Our DAT aggregates features across spatial and channel dimensions, in the interblock and intra-block dual manner. Specifically, we alternately apply spatial and channel self-attention in consecutive Transformer blocks. The alternate strategy enables DAT to capture the global context and realize inter-block feature aggregation. Furthermore, we propose the adaptive interaction module (AIM) and the spatial-gate feed-forward network (SGFN) to achieve intra-block feature aggregation. AIM complements two self-attention mechanisms from corresponding dimensions. Meanwhile, SGFN introduces additional non-linear spatial information in the feed-forward network. Extensive experiments show that our DAT surpasses current methods. Code and models are obtainable at https://github.com/zhengchen1999/DAT.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2308.03364")
get_code_for_paper("2308.03364")
have("2308.03364")
Connect an agent — have() is free.