From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:NCNN model" |
|---|
| claim | "Every ncnn graph file begins with the integer 7767517: as decimal text on the first line of a .param, or as a 32-bit int read first from a .param.bin." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:NCNN model" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "DD 85 76 00" |
|---|
| offset | "0x0" |
|---|
| meaning | "7767517 = 0x007685DD as a little-endian int32, in the binary .param.bin; the text .param starts with the ASCII digits 7767517 on line 1" |
|---|
| alternatives | |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "both Net::load_param and Net::load_param_bin test magic != 7767517 and fail with 'param is too old, please regenerate'" |
|---|
| repo | "Tencent/ncnn" |
|---|
| commit | "0ca5a4b6d59bbeb94dd85d94a9390f96684b2a8e" |
|---|
| path | "src/net.cpp" |
|---|
| lines | "1546, 1958" |
|---|
|
| type | "documentation" |
|---|
| detail | "net.param example starts with 7767517; 'magic number : 7767517'" |
|---|
| repo | "Tencent/ncnn" |
|---|
| commit | "0ca5a4b6d59bbeb94dd85d94a9390f96684b2a8e" |
|---|
| path | "docs/developer-guide/param-and-model-file-structure.md" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "ncnn param magic 7767517" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T04:02:17.961Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:51:44.292Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched src/net.cpp at 0ca5a4b6: load_param (line 1546, SCAN_VALUE text) and load_param_bin (line 1958, READ_VALUE binary) both reject magic != 7767517 with 'param is too old, please regenerate'; 7767517 = 0x007685DD gives DD 85 76 00 little-endian." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T08:23:46.279Z" |
|---|
| summary | "Both Net::load_param (text) and load_param_bin test magic != 7767517 (net.cpp 1546, 1958). The fact's bytes are only the binary form; added the ASCII text form of the digits 7767517 (37 37 36 37 35…" |
|---|
| changed | |
|---|
|
|
|---|