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
a298202e
Commit
a298202e
authored
Sep 10, 2020
by
Zhenyu Tan
Committed by
A. Unique TensorFlower
Sep 10, 2020
Browse files
Move anchor generator to keras_cv
PiperOrigin-RevId: 331081952
parent
47d92bcc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
4 deletions
+4
-4
official/vision/beta/ops/anchor.py
official/vision/beta/ops/anchor.py
+1
-2
official/vision/keras_cv/__init__.py
official/vision/keras_cv/__init__.py
+1
-1
official/vision/keras_cv/ops/__init__.py
official/vision/keras_cv/ops/__init__.py
+1
-0
official/vision/keras_cv/ops/anchor_generator.py
official/vision/keras_cv/ops/anchor_generator.py
+0
-0
official/vision/keras_cv/ops/anchor_generator_test.py
official/vision/keras_cv/ops/anchor_generator_test.py
+1
-1
No files found.
official/vision/beta/ops/anchor.py
View file @
a298202e
...
@@ -18,7 +18,6 @@ import collections
...
@@ -18,7 +18,6 @@ import collections
# Import libraries
# Import libraries
import
tensorflow
as
tf
import
tensorflow
as
tf
from
official.vision
import
keras_cv
from
official.vision
import
keras_cv
from
official.vision.beta.ops.experimental
import
anchor_generator
from
official.vision.detection.utils.object_detection
import
argmax_matcher
from
official.vision.detection.utils.object_detection
import
argmax_matcher
from
official.vision.detection.utils.object_detection
import
balanced_positive_negative_sampler
from
official.vision.detection.utils.object_detection
import
balanced_positive_negative_sampler
from
official.vision.detection.utils.object_detection
import
box_list
from
official.vision.detection.utils.object_detection
import
box_list
...
@@ -318,7 +317,7 @@ def build_anchor_generator(min_level, max_level, num_scales, aspect_ratios,
...
@@ -318,7 +317,7 @@ def build_anchor_generator(min_level, max_level, num_scales, aspect_ratios,
stride
=
2
**
level
stride
=
2
**
level
strides
[
level
]
=
stride
strides
[
level
]
=
stride
anchor_sizes
[
level
]
=
anchor_size
*
stride
anchor_sizes
[
level
]
=
anchor_size
*
stride
anchor_gen
=
anchor_generator
.
AnchorGenerator
(
anchor_gen
=
keras_cv
.
ops
.
AnchorGenerator
(
anchor_sizes
=
anchor_sizes
,
anchor_sizes
=
anchor_sizes
,
scales
=
scales
,
scales
=
scales
,
aspect_ratios
=
aspect_ratios
,
aspect_ratios
=
aspect_ratios
,
...
...
official/vision/keras_cv/__init__.py
View file @
a298202e
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# 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.
# ==============================================================================
# ==============================================================================
"""Keras-
NLP
package definition."""
"""Keras-
CV
package definition."""
# pylint: disable=wildcard-import
# pylint: disable=wildcard-import
from
official.vision.keras_cv.losses
import
*
from
official.vision.keras_cv.losses
import
*
from
official.vision.keras_cv.ops
import
*
from
official.vision.keras_cv.ops
import
*
official/vision/keras_cv/ops/__init__.py
View file @
a298202e
...
@@ -13,4 +13,5 @@
...
@@ -13,4 +13,5 @@
# limitations under the License.
# limitations under the License.
# ==============================================================================
# ==============================================================================
"""Keras-CV layers package definition."""
"""Keras-CV layers package definition."""
from
official.vision.keras_cv.ops.anchor_generator
import
AnchorGenerator
from
official.vision.keras_cv.ops.iou_similarity
import
IouSimilarity
from
official.vision.keras_cv.ops.iou_similarity
import
IouSimilarity
official/vision/
beta/ops/experimental
/anchor_generator.py
→
official/vision/
keras_cv/ops
/anchor_generator.py
View file @
a298202e
File moved
official/vision/
beta/ops/experimental
/anchor_generator_test.py
→
official/vision/
keras_cv/ops
/anchor_generator_test.py
View file @
a298202e
...
@@ -18,7 +18,7 @@ from absl.testing import parameterized
...
@@ -18,7 +18,7 @@ from absl.testing import parameterized
import
tensorflow
as
tf
import
tensorflow
as
tf
from
tensorflow.python.distribute
import
combinations
from
tensorflow.python.distribute
import
combinations
from
tensorflow.python.distribute
import
strategy_combinations
from
tensorflow.python.distribute
import
strategy_combinations
from
official.vision.
beta.ops.experimental
import
anchor_generator
from
official.vision.
keras_cv.ops
import
anchor_generator
class
AnchorGeneratorTest
(
parameterized
.
TestCase
,
tf
.
test
.
TestCase
):
class
AnchorGeneratorTest
(
parameterized
.
TestCase
,
tf
.
test
.
TestCase
):
...
...
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