jounery-d commited on
Commit
9d6c5f3
·
verified ·
1 Parent(s): 679e880

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +37 -7
README.md CHANGED
@@ -40,8 +40,11 @@ root@ax650:~/coderformer# tree
40
  .
41
  |-- model
42
  | `-- coderformer.axmodel
 
 
43
  |-- python
44
  |`-- run_axmodel.py
 
45
  |`-- requirements.txt
46
 
47
 
@@ -54,16 +57,19 @@ Input Data:
54
 
55
  ```
56
  |-- images
57
- | `-- 00_00.png
58
- | `-- 00_01.png
59
- | `-- 00_02.png
 
 
60
  ```
61
 
62
 
63
  #### Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)
64
 
 
65
  ```
66
- root@ax650 ~/realesrgan #python3 run_axmodel.py --inputs_path ./images --model_path ./coderformer.axmodel
67
 
68
  [INFO] Available providers: ['AxEngineExecutionProvider']
69
  [INFO] Using provider: AxEngineExecutionProvider
@@ -73,10 +79,34 @@ root@ax650 ~/realesrgan #python3 run_axmodel.py --inputs_path ./images --model_p
73
  [INFO] Model type: 2 (triple core)
74
  [INFO] Compiler version: 5.0-patch1 681a0b38
75
  SR image save to `00_00.png`
76
- SR image save to `01_00.png`
77
- SR image save to `02_00.png`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
 
79
  ```
80
 
81
  Output:
82
- ![Example Image](images/result.png)
 
40
  .
41
  |-- model
42
  | `-- coderformer.axmodel
43
+ | `-- yolov5l-face.axmodel
44
+ | `-- realesrgan-x2.axmodel
45
  |-- python
46
  |`-- run_axmodel.py
47
+ |`-- run_whole_image.py
48
  |`-- requirements.txt
49
 
50
 
 
57
 
58
  ```
59
  |-- images
60
+ | -- face
61
+ | `-- 00_00.png
62
+ | -- image
63
+ | `-- 02.png
64
+
65
  ```
66
 
67
 
68
  #### Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)
69
 
70
+ 运行人脸修复demo(需输入人脸图片)
71
  ```
72
+ root@ax650 ~/codeformer #python3 run_axmodel.py --inputs_path ./images/face --model_path ./coderformer.axmodel
73
 
74
  [INFO] Available providers: ['AxEngineExecutionProvider']
75
  [INFO] Using provider: AxEngineExecutionProvider
 
79
  [INFO] Model type: 2 (triple core)
80
  [INFO] Compiler version: 5.0-patch1 681a0b38
81
  SR image save to `00_00.png`
82
+ ```
83
+
84
+ Output:
85
+ ![Example Image](images/result_0.png)
86
+
87
+ 运行整图修复demo(输入正常图片即可)
88
+ ```
89
+ root@ax650 ~/codeformer #python3 run_whole_image.py --input_path ./images/image --detect_model ./yolov5l-face.axmodel --restore_model codeformer.axmodel --bg_model realesrgan-x2.axmodel
90
+
91
+
92
+ [INFO] Available providers: ['AxEngineExecutionProvider']
93
+ [INFO] Using provider: AxEngineExecutionProvider
94
+ [INFO] Chip type: ChipType.MC50
95
+ [INFO] VNPU type: VNPUType.DISABLED
96
+ [INFO] Engine version: 2.12.0s
97
+ [INFO] Model type: 2 (triple core)
98
+ [INFO] Compiler version: 5.0-patch1 6d9cc640
99
+ [INFO] Using provider: AxEngineExecutionProvider
100
+ [INFO] Model type: 2 (triple core)
101
+ [INFO] Compiler version: 5.0-patch1 681a0b38
102
+ [INFO] Using provider: AxEngineExecutionProvider
103
+ [INFO] Model type: 2 (triple core)
104
+ [INFO] Compiler version: 4.2-dirty 5e72cf06-dirty
105
+ [1/1] Processing: 02.png
106
+ detect 4 faces
107
 
108
+ SR image save to `02.png`
109
  ```
110
 
111
  Output:
112
+ ![Example Image](images/result_1.png)