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
69d80366
Kaydet (Commit)
69d80366
authored
Nis 27, 2018
tarafından
Hans Gaiser
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use nearest method for upsampling.
üst
ed01ad79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
tensorflow_backend.py
keras_retinanet/backend/tensorflow_backend.py
+8
-2
_misc.py
keras_retinanet/layers/_misc.py
+1
-1
No files found.
keras_retinanet/backend/tensorflow_backend.py
Dosyayı görüntüle @
69d80366
...
...
@@ -34,8 +34,14 @@ def clip_by_value(*args, **kwargs):
return
tensorflow
.
clip_by_value
(
*
args
,
**
kwargs
)
def
resize_images
(
*
args
,
**
kwargs
):
return
tensorflow
.
image
.
resize_images
(
*
args
,
**
kwargs
)
def
resize_images
(
*
args
,
method
=
'bilinear'
,
**
kwargs
):
methods
=
{
'bilinear'
:
tensorflow
.
image
.
ResizeMethod
.
BILINEAR
,
'nearest'
:
tensorflow
.
image
.
ResizeMethod
.
NEAREST_NEIGHBOR
,
'bicubic'
:
tensorflow
.
image
.
ResizeMethod
.
BICUBIC
,
'area'
:
tensorflow
.
image
.
ResizeMethod
.
AREA
,
}
return
tensorflow
.
image
.
resize_images
(
*
args
,
method
=
methods
[
method
],
**
kwargs
)
def
non_max_suppression
(
*
args
,
**
kwargs
):
...
...
keras_retinanet/layers/_misc.py
Dosyayı görüntüle @
69d80366
...
...
@@ -79,7 +79,7 @@ class UpsampleLike(keras.layers.Layer):
def
call
(
self
,
inputs
,
**
kwargs
):
source
,
target
=
inputs
target_shape
=
keras
.
backend
.
shape
(
target
)
return
backend
.
resize_images
(
source
,
(
target_shape
[
1
],
target_shape
[
2
]))
return
backend
.
resize_images
(
source
,
(
target_shape
[
1
],
target_shape
[
2
])
,
method
=
'nearest'
)
def
compute_output_shape
(
self
,
input_shape
):
return
(
input_shape
[
0
][
0
],)
+
input_shape
[
1
][
1
:
3
]
+
(
input_shape
[
0
][
-
1
],)
...
...
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