Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengchen1999 committed Aug 29, 2024
0 parents commit c81fe0d
Show file tree
Hide file tree
Showing 47 changed files with 5,612 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Enhancing Image Super-Resolution with Dual Compression Transformer



## Dependencies

- Python 3.8
- PyTorch 1.8.0
- NVIDIA GPU + [CUDA](https://developer.nvidia.com/cuda-downloads)

```bash
pip install -r requirements.txt
python setup.py develop
```

## Test

- We provide DCT with scale factors: x2, x3, x4.

- Download testing (Set5, Set14, BSD100, Urban100, Manga109) datasets, place them in `datasets/`.

- Run the following scripts.

**You can change the testing configuration in YML file, like 'test_DCT_light_x2.yml'.**

```shell
# DCT, reproduces results in Table 3 of the main paper
python basicsr/test.py -opt options/Test/test_DCT_light_x2.yml
python basicsr/test.py -opt options/Test/test_DCT_light_x3.yml
python basicsr/test.py -opt options/Test/test_DCT_light_x4.yml
```

- The output is in `results`.

## Acknowledgements

This code is built on [BasicSR](https://github.com/XPixelGroup/BasicSR).
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.3.5
6 changes: 6 additions & 0 deletions basicsr/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from .archs import *
from .data import *
from .metrics import *
from .models import *
from .test import *
from .utils import *
Loading

0 comments on commit c81fe0d

Please sign in to comment.