回答編集履歴
1
修正
answer
CHANGED
@@ -4,10 +4,10 @@
|
|
4
4
|
https://github.com/ultralytics/yolov5/blob/master/detect.py
|
5
5
|
|
6
6
|
|
7
|
-
|
7
|
+
`# Write results`というコメントの近辺
|
8
8
|
|
9
9
|
```
|
10
|
-
|
10
|
+
# Write results
|
11
11
|
for *xyxy, conf, cls in reversed(det):
|
12
12
|
# 追記する部分 ここから
|
13
13
|
xywh = (xyxy2xywh(torch.tensor(xyxy).view(1, 4)) / gn).view(-1).tolist()
|
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
-
あとは
|
21
|
+
あとはその下あたりにある下記`print`関数をコメントアウト
|
22
22
|
|
23
23
|
```
|
24
24
|
# Print time (inference + NMS)
|