Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
ff93e945
Commit
ff93e945
authored
Nov 03, 2021
by
Abdullah Rashwan
Committed by
A. Unique TensorFlower
Nov 03, 2021
Browse files
Internal change
PiperOrigin-RevId: 407421711
parent
5292d16e
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
7 additions
and
41 deletions
+7
-41
official/vision/beta/evaluation/iou.py
official/vision/beta/evaluation/iou.py
+0
-0
official/vision/beta/evaluation/iou_test.py
official/vision/beta/evaluation/iou_test.py
+2
-2
official/vision/beta/evaluation/segmentation_metrics.py
official/vision/beta/evaluation/segmentation_metrics.py
+2
-2
official/vision/beta/modeling/decoders/aspp.py
official/vision/beta/modeling/decoders/aspp.py
+2
-2
official/vision/beta/modeling/layers/deeplab.py
official/vision/beta/modeling/layers/deeplab.py
+0
-0
official/vision/beta/modeling/layers/deeplab_test.py
official/vision/beta/modeling/layers/deeplab_test.py
+1
-1
official/vision/keras_cv/__init__.py
official/vision/keras_cv/__init__.py
+0
-2
official/vision/keras_cv/layers/__init__.py
official/vision/keras_cv/layers/__init__.py
+0
-16
official/vision/keras_cv/metrics/__init__.py
official/vision/keras_cv/metrics/__init__.py
+0
-16
No files found.
official/vision/
keras_cv/metrics
/iou.py
→
official/vision/
beta/evaluation
/iou.py
View file @
ff93e945
File moved
official/vision/
keras_cv/metrics
/iou_test.py
→
official/vision/
beta/evaluation
/iou_test.py
View file @
ff93e945
...
@@ -12,11 +12,11 @@
...
@@ -12,11 +12,11 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Tests for
Keras
metric
s functions
."""
"""Tests for
iou
metric."""
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.vision.
keras_cv.metrics
import
iou
from
official.vision.
beta.evaluation
import
iou
class
MeanIoUTest
(
tf
.
test
.
TestCase
):
class
MeanIoUTest
(
tf
.
test
.
TestCase
):
...
...
official/vision/beta/evaluation/segmentation_metrics.py
View file @
ff93e945
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
"""Metrics for segmentation."""
"""Metrics for segmentation."""
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.vision
import
keras_cv
from
official.vision
.beta.evaluation
import
iou
class
MeanIoU
(
tf
.
keras
.
metrics
.
MeanIoU
):
class
MeanIoU
(
tf
.
keras
.
metrics
.
MeanIoU
):
...
@@ -125,7 +125,7 @@ class MeanIoU(tf.keras.metrics.MeanIoU):
...
@@ -125,7 +125,7 @@ class MeanIoU(tf.keras.metrics.MeanIoU):
tf
.
cast
(
flatten_valid_masks
,
tf
.
float32
))
tf
.
cast
(
flatten_valid_masks
,
tf
.
float32
))
class
PerClassIoU
(
keras_cv
.
metrics
.
PerClassIoU
):
class
PerClassIoU
(
iou
.
PerClassIoU
):
"""Per Class IoU metric for semantic segmentation.
"""Per Class IoU metric for semantic segmentation.
This class utilizes keras_cv.metrics.PerClassIoU to perform batched per class
This class utilizes keras_cv.metrics.PerClassIoU to perform batched per class
...
...
official/vision/beta/modeling/decoders/aspp.py
View file @
ff93e945
...
@@ -20,8 +20,8 @@ from typing import Any, List, Mapping, Optional
...
@@ -20,8 +20,8 @@ from typing import Any, List, Mapping, Optional
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.modeling
import
hyperparams
from
official.modeling
import
hyperparams
from
official.vision
import
keras_cv
from
official.vision.beta.modeling.decoders
import
factory
from
official.vision.beta.modeling.decoders
import
factory
from
official.vision.beta.modeling.layers
import
deeplab
@
tf
.
keras
.
utils
.
register_keras_serializable
(
package
=
'Vision'
)
@
tf
.
keras
.
utils
.
register_keras_serializable
(
package
=
'Vision'
)
...
@@ -93,7 +93,7 @@ class ASPP(tf.keras.layers.Layer):
...
@@ -93,7 +93,7 @@ class ASPP(tf.keras.layers.Layer):
int
(
p_size
//
2
**
self
.
_config_dict
[
'level'
])
int
(
p_size
//
2
**
self
.
_config_dict
[
'level'
])
for
p_size
in
self
.
_config_dict
[
'pool_kernel_size'
]
for
p_size
in
self
.
_config_dict
[
'pool_kernel_size'
]
]
]
self
.
aspp
=
keras_cv
.
layers
.
SpatialPyramidPooling
(
self
.
aspp
=
deeplab
.
SpatialPyramidPooling
(
output_channels
=
self
.
_config_dict
[
'num_filters'
],
output_channels
=
self
.
_config_dict
[
'num_filters'
],
dilation_rates
=
self
.
_config_dict
[
'dilation_rates'
],
dilation_rates
=
self
.
_config_dict
[
'dilation_rates'
],
pool_kernel_size
=
pool_kernel_size
,
pool_kernel_size
=
pool_kernel_size
,
...
...
official/vision/
keras_cv
/layers/deeplab.py
→
official/vision/
beta/modeling
/layers/deeplab.py
View file @
ff93e945
File moved
official/vision/
keras_cv
/layers/deeplab_test.py
→
official/vision/
beta/modeling
/layers/deeplab_test.py
View file @
ff93e945
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
import
tensorflow
as
tf
import
tensorflow
as
tf
from
tensorflow.python.keras
import
keras_parameterized
from
tensorflow.python.keras
import
keras_parameterized
from
official.vision.
keras_cv
.layers
import
deeplab
from
official.vision.
beta.modeling
.layers
import
deeplab
@
keras_parameterized
.
run_all_keras_modes
@
keras_parameterized
.
run_all_keras_modes
...
...
official/vision/keras_cv/__init__.py
View file @
ff93e945
...
@@ -14,7 +14,5 @@
...
@@ -14,7 +14,5 @@
"""Keras-CV package definition."""
"""Keras-CV package definition."""
# pylint: disable=wildcard-import
# pylint: disable=wildcard-import
from
official.vision.keras_cv
import
layers
from
official.vision.keras_cv
import
losses
from
official.vision.keras_cv
import
losses
from
official.vision.keras_cv
import
metrics
from
official.vision.keras_cv
import
ops
from
official.vision.keras_cv
import
ops
official/vision/keras_cv/layers/__init__.py
deleted
100644 → 0
View file @
5292d16e
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Keras-CV layers package definition."""
from
official.vision.keras_cv.layers.deeplab
import
SpatialPyramidPooling
official/vision/keras_cv/metrics/__init__.py
deleted
100644 → 0
View file @
5292d16e
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Keras-CV metrics package definition."""
from
official.vision.keras_cv.metrics.iou
import
PerClassIoU
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