berikaa commited on
Commit
a5ea9af
·
verified ·
1 Parent(s): 5ee0311

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -1
README.md CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
 
2
  **DCASR**
3
 
@@ -5,15 +13,34 @@ The DCASR model, trained with the DIV2K dataset, is implemented using TensorFlow
5
 
6
  DCASR model has been proven to give better results than other SR models compared to other SR models. You can find all the details of the model in the source below.
7
 
8
- [A novel model for higher performance object detection with deep channel attention super resolution] https://doi.org/10.1016/j.jestch.2025.102003
9
 
10
  *IMPORTANT: If you are going to use the DCASR model in your academic studies, you must cite the original article.*
11
 
12
  Model weights saved for x2, x3 and x4:
13
 
 
 
 
 
14
  The model is built in tensorflow==2.14.0.
15
 
16
  pip install tensorflow==2.14.0
17
 
18
 
19
  **Usage**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - superresolution
7
+ - computervision
8
+ ---
9
 
10
  **DCASR**
11
 
 
13
 
14
  DCASR model has been proven to give better results than other SR models compared to other SR models. You can find all the details of the model in the source below.
15
 
16
+ - <a href="https://doi.org/10.1016/j.jestch.2025.102003" target="_blank">A novel model for higher performance object detection with deep channel attention super resolution</a>
17
 
18
  *IMPORTANT: If you are going to use the DCASR model in your academic studies, you must cite the original article.*
19
 
20
  Model weights saved for x2, x3 and x4:
21
 
22
+ - <a href="https://drive.google.com/file/d/1UL_tWB5Pht59ICLdnyxIjKa2BBd4EQ04/view?usp=sharing" target="_blank">DCASR_x2</a>
23
+ - <a href="https://drive.google.com/file/d/1Hp94OjYxrXii1alYh5xMg3A7jW0AyOGn/view?usp=sharing" target="_blank">DCASR_x3</a>
24
+ - <a href="https://drive.google.com/file/d/1DajIAnpvI1p1_ZRTny-gEDNKVaLuRPv0/view?usp=sharing" target="_blank">DCASR_x4</a>
25
+
26
  The model is built in tensorflow==2.14.0.
27
 
28
  pip install tensorflow==2.14.0
29
 
30
 
31
  **Usage**
32
+ ```python
33
+ from tensorflow.keras.models import load_model
34
+ from PIL import Image
35
+ from skimage import io
36
+ import tensorflow as tf
37
+
38
+ device = "/GPU:0" if tf.config.list_physical_devices('GPU') else "/CPU:0"
39
+ print(f"used device: {device}")
40
+
41
+ model = load_model("DCASR_x2.keras")
42
+ original = io.imread("input/butterfly.png")
43
+ preds = model.predict_step(original)
44
+ preds_np = preds.numpy()
45
+ predicted_image = Image.fromarray(preds_np.astype('uint8'))
46
+ predicted_image.save("output/butterfly_x2.png")