Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
曾经的那一瞬间
Models
提交
6f5b5bc7
M
Models
项目概览
曾经的那一瞬间
/
Models
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
Models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6f5b5bc7
编写于
11月 03, 2021
作者:
A
Abdullah Rashwan
提交者:
A. Unique TensorFlower
11月 03, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Internal change
PiperOrigin-RevId: 407421711
上级
6cf9a28c
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
7 addition
and
41 deletion
+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
未找到文件。
official/vision/
keras_cv/metrics
/iou.py
→
official/vision/
beta/evaluation
/iou.py
浏览文件 @
6f5b5bc7
文件已移动
official/vision/
keras_cv/metrics
/iou_test.py
→
official/vision/
beta/evaluation
/iou_test.py
浏览文件 @
6f5b5bc7
...
...
@@ -12,11 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for
Keras metrics functions
."""
"""Tests for
iou metric
."""
import
tensorflow
as
tf
from
official.vision.
keras_cv.metrics
import
iou
from
official.vision.
beta.evaluation
import
iou
class
MeanIoUTest
(
tf
.
test
.
TestCase
):
...
...
official/vision/beta/evaluation/segmentation_metrics.py
浏览文件 @
6f5b5bc7
...
...
@@ -15,7 +15,7 @@
"""Metrics for segmentation."""
import
tensorflow
as
tf
from
official.vision
import
keras_cv
from
official.vision
.beta.evaluation
import
iou
class
MeanIoU
(
tf
.
keras
.
metrics
.
MeanIoU
):
...
...
@@ -125,7 +125,7 @@ class MeanIoU(tf.keras.metrics.MeanIoU):
tf
.
cast
(
flatten_valid_masks
,
tf
.
float32
))
class
PerClassIoU
(
keras_cv
.
metrics
.
PerClassIoU
):
class
PerClassIoU
(
iou
.
PerClassIoU
):
"""Per Class IoU metric for semantic segmentation.
This class utilizes keras_cv.metrics.PerClassIoU to perform batched per class
...
...
official/vision/beta/modeling/decoders/aspp.py
浏览文件 @
6f5b5bc7
...
...
@@ -20,8 +20,8 @@ from typing import Any, List, Mapping, Optional
import
tensorflow
as
tf
from
official.modeling
import
hyperparams
from
official.vision
import
keras_cv
from
official.vision.beta.modeling.decoders
import
factory
from
official.vision.beta.modeling.layers
import
deeplab
@
tf
.
keras
.
utils
.
register_keras_serializable
(
package
=
'Vision'
)
...
...
@@ -93,7 +93,7 @@ class ASPP(tf.keras.layers.Layer):
int
(
p_size
//
2
**
self
.
_config_dict
[
'level'
])
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'
],
dilation_rates
=
self
.
_config_dict
[
'dilation_rates'
],
pool_kernel_size
=
pool_kernel_size
,
...
...
official/vision/
keras_cv
/layers/deeplab.py
→
official/vision/
beta/modeling
/layers/deeplab.py
浏览文件 @
6f5b5bc7
文件已移动
official/vision/
keras_cv
/layers/deeplab_test.py
→
official/vision/
beta/modeling
/layers/deeplab_test.py
浏览文件 @
6f5b5bc7
...
...
@@ -17,7 +17,7 @@
import
tensorflow
as
tf
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
...
...
official/vision/keras_cv/__init__.py
浏览文件 @
6f5b5bc7
...
...
@@ -14,7 +14,5 @@
"""Keras-CV package definition."""
# pylint: disable=wildcard-import
from
official.vision.keras_cv
import
layers
from
official.vision.keras_cv
import
losses
from
official.vision.keras_cv
import
metrics
from
official.vision.keras_cv
import
ops
official/vision/keras_cv/layers/__init__.py
已删除
100644 → 0
浏览文件 @
6cf9a28c
# 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
已删除
100644 → 0
浏览文件 @
6cf9a28c
# 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
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录