jounery-d commited on
Commit
8b57be8
·
verified ·
1 Parent(s): 88e3ea7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +80 -3
README.md CHANGED
@@ -1,3 +1,80 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ base_model:
6
+ - DeOldify
7
+ pipeline_tag: frame
8
+ tags:
9
+ - Image
10
+ - Colorize
11
+ ---
12
+
13
+ # DeOldify
14
+
15
+ This version of DeOldify has been converted to run on the Axera NPU using **w8a16** quantization.
16
+
17
+ This model has been optimized with the following LoRA:
18
+
19
+ Compatible with Pulsar2 version: 5.0-patch1
20
+
21
+ ## Convert tools links:
22
+
23
+ For those who are interested in model conversion, you can try to export axmodel through
24
+
25
+ - [The repo of AXera Platform](https://github.com/AXERA-TECH/ax-samples), which you can get the detail of guide
26
+
27
+ - [Pulsar2 Link, How to Convert ONNX to axmodel](https://pulsar2-docs.readthedocs.io/en/latest/pulsar2/introduction.html)
28
+
29
+
30
+ ## Support Platform
31
+
32
+ - AX650
33
+ - [M4N-Dock(爱芯派Pro)](https://wiki.sipeed.com/hardware/zh/maixIV/m4ndock/m4ndock.html)
34
+ - [M.2 Accelerator card](https://axcl-docs.readthedocs.io/zh-cn/latest/doc_guide_hardware.html)
35
+
36
+ |Chips|model|cost|
37
+ |--|--|--|
38
+ |AX650|colorize_stable|377 ms|
39
+
40
+ ## How to use
41
+
42
+ Download all files from this repository to the device
43
+
44
+ ```
45
+
46
+ root@ax650:~/deoldify# tree
47
+ .
48
+ |-- model
49
+ | `-- colorize_stable.axmodel
50
+ |-- python
51
+ |`-- run_axmodel.py
52
+ |`-- requirements.txt
53
+
54
+
55
+
56
+ ```
57
+
58
+ ### Inference
59
+
60
+ Input Data:
61
+ |-- image
62
+ | `-- 1850Geography.jpg
63
+
64
+ #### Inference with AX650 Host, such as M4N-Dock(爱芯派Pro)
65
+
66
+ ```
67
+ root@ax650 ~/realesrgan #python3 run_axmodel.py --input_path image/1850Geography.jpg --model_path colorize_stable.axmodel
68
+ [INFO] Available providers: ['AxEngineExecutionProvider']
69
+ [INFO] Using provider: AxEngineExecutionProvider
70
+ [INFO] Chip type: ChipType.MC50
71
+ [INFO] VNPU type: VNPUType.DISABLED
72
+ [INFO] Engine version: 2.12.0s
73
+ [INFO] Model type: 2 (triple core)
74
+ [INFO] Compiler version: 5.0-patch1 2295293f
75
+ Color image save to `./sr_colorized.jpg`
76
+
77
+ ```
78
+
79
+ Output:
80
+ [INFO]: