Update README.md
Browse files
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 |
-
|
|
| 58 |
-
|
|
| 59 |
-
|
|
|
|
|
|
|
|
| 60 |
```
|
| 61 |
|
| 62 |
|
| 63 |
#### Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)
|
| 64 |
|
|
|
|
| 65 |
```
|
| 66 |
-
root@ax650 ~/
|
| 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 |
-
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
|
|
|
| 79 |
```
|
| 80 |
|
| 81 |
Output:
|
| 82 |
-

|
| 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 |
+

|
| 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 |
+

|