forked from ultralytics/yolov5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Integer printout * test.py 'Labels' * Update train.py
- Loading branch information
1 parent
428001d
commit 4e9b469
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,7 @@ def test(data, | |
confusion_matrix = ConfusionMatrix(nc=nc) | ||
names = {k: v for k, v in enumerate(model.names if hasattr(model, 'names') else model.module.names)} | ||
coco91class = coco80_to_coco91_class() | ||
s = ('%20s' + '%12s' * 6) % ('Class', 'Images', 'Targets', 'P', 'R', '[email protected]', '[email protected]:.95') | ||
s = ('%20s' + '%12s' * 6) % ('Class', 'Images', 'Labels', 'P', 'R', '[email protected]', '[email protected]:.95') | ||
p, r, f1, mp, mr, map50, map, t0, t1 = 0., 0., 0., 0., 0., 0., 0., 0., 0. | ||
loss = torch.zeros(3, device=device) | ||
jdict, stats, ap, ap_class, wandb_images = [], [], [], [], [] | ||
|
@@ -223,7 +223,7 @@ def test(data, | |
nt = torch.zeros(1) | ||
|
||
# Print results | ||
pf = '%20s' + '%12.3g' * 6 # print format | ||
pf = '%20s' + '%12i' * 2 + '%12.3g' * 4 # print format | ||
print(pf % ('all', seen, nt.sum(), mp, mr, map50, map)) | ||
|
||
# Print results per class | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters