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
842cdd4d
Commit
842cdd4d
authored
Sep 21, 2021
by
Vishnu Banna
Browse files
bakcbone config update
parent
4cbe79bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
10 deletions
+36
-10
official/vision/beta/projects/yolo/configs/backbones.py
official/vision/beta/projects/yolo/configs/backbones.py
+6
-9
official/vision/beta/projects/yolo/ops/anchor.py
official/vision/beta/projects/yolo/ops/anchor.py
+15
-1
official/vision/beta/projects/yolo/ops/mosaic.py
official/vision/beta/projects/yolo/ops/mosaic.py
+15
-0
No files found.
official/vision/beta/projects/yolo/configs/backbones.py
View file @
842cdd4d
...
@@ -12,26 +12,23 @@
...
@@ -12,26 +12,23 @@
# 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.
# Lint as: python3
"""Backbones configurations."""
"""Backbones configurations."""
import
dataclasses
import
dataclasses
from
official.modeling
import
hyperparams
from
official.modeling
import
hyperparams
from
official.vision.beta.configs
import
backbones
from
official.vision.beta.configs
import
backbones
@
dataclasses
.
dataclass
@
dataclasses
.
dataclass
class
Darknet
(
hyperparams
.
Config
):
class
Darknet
(
hyperparams
.
Config
):
"""Dark
n
et config."""
"""Dark
N
et config."""
model_id
:
str
=
'darknet53'
model_id
:
str
=
'
csp
darknet53'
width_scale
:
floa
t
=
1.0
width_scale
:
in
t
=
1.0
depth_scale
:
floa
t
=
1.0
depth_scale
:
in
t
=
1.0
dilate
:
bool
=
False
dilate
:
bool
=
False
min_level
:
int
=
3
min_level
:
int
=
3
max_level
:
int
=
5
max_level
:
int
=
5
use_separable_conv
:
bool
=
False
use_reorg_input
:
bool
=
False
@
dataclasses
.
dataclass
@
dataclasses
.
dataclass
...
...
official/vision/beta/projects/yolo/ops/anchor.py
View file @
842cdd4d
import
numpy
as
np
# 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.
"""Yolo Anchor labler."""
import
tensorflow
as
tf
import
tensorflow
as
tf
from
tensorflow.python.ops.gen_math_ops
import
maximum
,
minimum
from
tensorflow.python.ops.gen_math_ops
import
maximum
,
minimum
from
official.vision.beta.projects.yolo.ops
import
box_ops
from
official.vision.beta.projects.yolo.ops
import
box_ops
...
...
official/vision/beta/projects/yolo/ops/mosaic.py
View file @
842cdd4d
# 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.
"""Mosaic op."""
import
random
import
random
import
tensorflow
as
tf
import
tensorflow
as
tf
import
tensorflow_addons
as
tfa
import
tensorflow_addons
as
tfa
...
...
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