質問編集履歴
1
状況変化
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,4 +2,116 @@
|
|
2
2
|
|
3
3
|
####あるサイトでYoloV3のコマンドの引数でoutとかjsonなんとかというような物を見たのですが、動作しません。
|
4
4
|
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
####以下の処理を試してみました。最初にdarknetを起動するバッチファイルを作成。
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
```bat
|
14
|
+
|
15
|
+
c:
|
16
|
+
|
17
|
+
cd C:\darknet-master\build\darknet\x64
|
18
|
+
|
19
|
+
darknet.exe detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights
|
20
|
+
|
21
|
+
```
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
####これをVS2017のc#デスクトップアプリケーションにて起動する処理を作成。
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
```c#
|
34
|
+
|
35
|
+
string command = @"c:\video.bat";
|
36
|
+
|
37
|
+
Process p = new Process();
|
38
|
+
|
39
|
+
p.StartInfo.FileName = command; // 実行するファイル
|
40
|
+
|
41
|
+
p.StartInfo.CreateNoWindow = true; // コンソールを開かない
|
42
|
+
|
43
|
+
p.StartInfo.UseShellExecute = false; // シェル機能を使用しない
|
44
|
+
|
45
|
+
p.StartInfo.RedirectStandardOutput = true; // 標準出力をリダイレクト
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
p.Start(); // アプリの実行開始
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
string output = p.StandardOutput.ReadToEnd(); // 標準出力の読み取り
|
54
|
+
|
55
|
+
output = output.Replace("\r\r\n", "\n"); // 改行コードの修正
|
56
|
+
|
57
|
+
Console.WriteLine(output); // [出力]ウィンドウに出力
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
```
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
5
|
-
####
|
77
|
+
####実行したところ、以下の部分のところまでコンソール出力されていたのですが、後の肝心の検知結果が拾えない。opencvの画面は表示され正常に認識されています。現在この状況。
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
```log
|
82
|
+
|
83
|
+
CUDA-version: 10010 (10010), cuDNN: 7.5.0, CUDNN_HALF=1, GPU count: 1
|
84
|
+
|
85
|
+
OpenCV version: 3.4.0
|
86
|
+
|
87
|
+
0 : compute_capability = 610, cudnn_half = 0, GPU: GeForce GTX 1060 3GB
|
88
|
+
|
89
|
+
layer filters size/strd(dil) input output
|
90
|
+
|
91
|
+
0 conv 32 3 x 3/ 1 416 x 416 x 3 -> 416 x 416 x 32 0.299 BF
|
92
|
+
|
93
|
+
1 conv 64 3 x 3/ 2 416 x 416 x 32 -> 208 x 208 x 64 1.595 BF
|
94
|
+
|
95
|
+
2 conv 32 1 x 1/ 1 208 x 208 x 64 -> 208 x 208 x 32 0.177 BF
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
105 conv 255 1 x 1/ 1 52 x 52 x 256 -> 52 x 52 x 255 0.353 BF
|
104
|
+
|
105
|
+
106 yolo
|
106
|
+
|
107
|
+
[yolo] params: iou loss: mse (2), iou_norm: 0.75, cls_norm: 1.00, scale_x_y: 1.00
|
108
|
+
|
109
|
+
Total BFLOPS 65.879
|
110
|
+
|
111
|
+
avg_outputs = 532444
|
112
|
+
|
113
|
+
Allocate additional workspace_size = 52.43 MB
|
114
|
+
|
115
|
+
Loading weights from yolov3.weights...Done! Loaded 107 layers from weights-file
|
116
|
+
|
117
|
+
```
|