Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
K
keras-retinanet
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Seyfullah Tıkıç
keras-retinanet
Commits
a7966a5f
Kaydet (Commit)
a7966a5f
authored
Kas 05, 2019
tarafından
José L. S. A
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Recommended fixes.
üst
bd5bfd8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
eval.py
keras_retinanet/utils/eval.py
+3
-3
No files found.
keras_retinanet/utils/eval.py
Dosyayı görüntüle @
a7966a5f
...
...
@@ -100,7 +100,7 @@ def _get_detections(generator, model, score_threshold=0.05, max_detections=100,
scores_sort
=
np
.
argsort
(
-
scores
)[:
max_detections
]
# select detections
image_boxes
=
boxes
[
0
,
indices
[
scores_sort
],
:]
image_boxes
=
boxes
[
0
,
indices
[
scores_sort
],
:]
image_scores
=
scores
[
scores_sort
]
image_labels
=
labels
[
0
,
indices
[
scores_sort
]]
image_detections
=
np
.
concatenate
([
image_boxes
,
np
.
expand_dims
(
image_scores
,
axis
=
1
),
np
.
expand_dims
(
image_labels
,
axis
=
1
)],
axis
=
1
)
...
...
@@ -171,7 +171,7 @@ def evaluate(
A dict mapping class names to mAP scores.
"""
# gather all detections and annotations
all_detections
,
all_inferences
=
_get_detections
(
generator
,
model
,
score_threshold
=
score_threshold
,
max_detections
=
max_detections
,
save_path
=
save_path
)
all_detections
,
all_inferences
=
_get_detections
(
generator
,
model
,
score_threshold
=
score_threshold
,
max_detections
=
max_detections
,
save_path
=
save_path
)
all_annotations
=
_get_annotations
(
generator
)
average_precisions
=
{}
...
...
@@ -238,6 +238,6 @@ def evaluate(
average_precision
=
_compute_ap
(
recall
,
precision
)
average_precisions
[
label
]
=
average_precision
,
num_annotations
inference_time
=
np
.
sum
(
all_inferences
)
/
generator
.
size
()
inference_time
=
np
.
sum
(
all_inferences
)
/
generator
.
size
()
return
average_precisions
,
inference_time
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment