updates
This commit is contained in:
parent
09949cdafa
commit
3c6b168a0a
2
test.py
2
test.py
|
@ -15,7 +15,7 @@ def test(
|
||||||
batch_size=16,
|
batch_size=16,
|
||||||
img_size=416,
|
img_size=416,
|
||||||
iou_thres=0.5,
|
iou_thres=0.5,
|
||||||
conf_thres=0.1,
|
conf_thres=0.001,
|
||||||
nms_thres=0.5,
|
nms_thres=0.5,
|
||||||
save_json=False,
|
save_json=False,
|
||||||
model=None
|
model=None
|
||||||
|
|
2
train.py
2
train.py
|
@ -180,7 +180,7 @@ def train(
|
||||||
|
|
||||||
# Calculate mAP
|
# Calculate mAP
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
results = test.test(cfg, data_cfg, batch_size=batch_size, img_size=img_size, model=model)
|
results = test.test(cfg, data_cfg, batch_size=batch_size, img_size=img_size, model=model, conf_thres=0.1)
|
||||||
|
|
||||||
# Write epoch results
|
# Write epoch results
|
||||||
with open('results.txt', 'a') as file:
|
with open('results.txt', 'a') as file:
|
||||||
|
|
Loading…
Reference in New Issue