darknetのVSCodeワンステップデバッグ
2099 ワード
1. How
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "region",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/darknet",
"args": ["detector", "train", "${workspaceFolder}/data/candle.data", "${workspaceFolder}/cfg/candle11-tr.cfg", "${workspaceFolder}/yolov2-tiny.conv.11"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "make",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]}
2.トレーニングプロセス
darknet.c
呼び出しdetector.c
run_detector parser.c
のparse_network_cfg,実際にparse_を呼び出すnetwork_cfg_custom region_layer.c
のmake_region_layer、anchordata.c
のload_data network.c
のtrain_network_waitkey(GPU 1個のみの場合)