Image-to-Image
image-super-resolution

Improve model card with project page, code, demo links, and usage

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +20 -0
README.md CHANGED
@@ -13,6 +13,10 @@ This is a model from the paper [Thera: Aliasing-Free Arbitrary-Scale Super-Resol
13
  It enables SOTA arbitrary-scale super-resolution, leveraging a built-in analytically correct observation model
14
  for anti-aliasing when moving across scales.
15
 
 
 
 
 
16
  ## Model Details
17
 
18
  - **Description**: This model can be used to enable super-resolution of single images at arbitrary, non-integer scaling factors.
@@ -20,6 +24,22 @@ for anti-aliasing when moving across scales.
20
  - **Variant**: `Plus`
21
  - **Training Dataset**: `DIV2K`
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  ## License
25
 
 
13
  It enables SOTA arbitrary-scale super-resolution, leveraging a built-in analytically correct observation model
14
  for anti-aliasing when moving across scales.
15
 
16
+ * **Project Page:** [https://therasr.github.io](https://therasr.github.io)
17
+ * **Code Repository:** [https://github.com/prs-eth/thera](https://github.com/prs-eth/thera)
18
+ * **Demo:** [https://huggingface.co/spaces/prs-eth/thera](https://huggingface.co/spaces/prs-eth/thera)
19
+
20
  ## Model Details
21
 
22
  - **Description**: This model can be used to enable super-resolution of single images at arbitrary, non-integer scaling factors.
 
24
  - **Variant**: `Plus`
25
  - **Training Dataset**: `DIV2K`
26
 
27
+ ## Usage
28
+
29
+ To use this model, first clone the official repository and set up the environment. You will need a Python 3.10 environment and an NVIDIA GPU.
30
+
31
+ ```bash
32
+ git clone https://github.com/prs-eth/thera.git
33
+ cd thera
34
+ pip install --upgrade pip
35
+ pip install -r requirements.txt
36
+ ```
37
+
38
+ After setting up the environment and downloading the `thera-rdn-plus.pkl` checkpoint (available in the "Files and versions" tab of this repository), you can super-resolve any image with the following command:
39
+
40
+ ```bash
41
+ ./super_resolve.py IN_FILE OUT_FILE --scale 3.14 --checkpoint thera-rdn-plus.pkl
42
+ ```
43
 
44
  ## License
45