File size: 1,029 Bytes
c306b41
 
d34534e
 
 
 
 
c306b41
d34534e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
license: apache-2.0
tags:
  - Super-Resolution
  - computer-vision
  - bsrgan
  - gan
---

### Model Description
[BSRGAN: Designing a Practical Degradation Model for Deep Blind Image Super-Resolution .](https://arxiv.org/abs/2103.14006)

[BSRGAN-Pip: Packaged version of the BSRGAN repository](https://github.com/kadirnar/bsrgan-pip/)

[Paper Repo: Implementation of paper - BSRGAN](https://github.com/cszn/BSRGAN)

### Installation
```
pip install bsrgan
```

### BSRGAN Usage
```python
from bsrgan import BSRGAN

model = BSRGAN(weights='kadirnar/BSRGANx2', device='cuda:0', hf_model=True)
model.save = True

pred = model.predict(img_path='data/image/test.png')
```

### BibTeX Entry and Citation Info
 ```
@inproceedings{zhang2021designing,
    title={Designing a Practical Degradation Model for Deep Blind Image Super-Resolution},
    author={Zhang, Kai and Liang, Jingyun and Van Gool, Luc and Timofte, Radu},
    booktitle={IEEE International Conference on Computer Vision},
    pages={4791--4800},
    year={2021}
}
```