Skip to content

Commit 6f661f9

Browse files
authored
Update FAQ-ncnn-throw-error.md
1 parent 0676684 commit 6f661f9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/how-to-use-and-FAQ/FAQ-ncnn-throw-error.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,30 @@ Make sure that your param file starts with the magic number 7767517.
88

99
you may find more info on [use-ncnn-with-alexnet](use-ncnn-with-alexnet)
1010

11+
If the original model is missing, you can try to manually fix the layer specific parameters in param file
12+
13+
1. **Softmax** append `1=1`
14+
15+
before
16+
```
17+
Softmax xxx 1 1 in out ...
18+
```
19+
after
20+
```
21+
Softmax xxx 1 1 in out ... 1=1
22+
```
23+
24+
2. **Reduction** minus all axes value by 1 (except the leading array count) and append `5=1`
25+
26+
before
27+
```
28+
Reduction xxx 1 1 in out ... -23303=2,2,3 ...
29+
```
30+
after
31+
```
32+
Reduction xxx 1 1 in out ... -23303=2,1,2 ... 5=1
33+
```
34+
1135
### find_blob_index_by_name XYZ failed
1236

1337
That means ncnn couldn't find the XYZ blob in the network.

0 commit comments

Comments
 (0)