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
669807e6
Commit
669807e6
authored
Nov 01, 2020
by
vishnubanna
Browse files
tfds csp
parent
868cea8f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
official/vision/beta/projects/yolo/configs/experiments/csp_darknet53_tfds.yaml
...projects/yolo/configs/experiments/csp_darknet53_tfds.yaml
+13
-10
official/vision/beta/projects/yolo/dataloaders/classification_input.py
...on/beta/projects/yolo/dataloaders/classification_input.py
+0
-3
No files found.
official/vision/beta/projects/yolo/configs/experiments/csp_darknet53_tfds.yaml
View file @
669807e6
runtime
:
runtime
:
distribution_strategy
:
'
mirrored'
distribution_strategy
:
'
mirrored'
mixed_precision_dtype
:
'
float16'
mixed_precision_dtype
:
'
float16'
loss_scale
:
'
dynamic'
num_gpus
:
2
task
:
task
:
model
:
model
:
num_classes
:
1001
num_classes
:
1001
...
@@ -12,28 +14,29 @@ task:
...
@@ -12,28 +14,29 @@ task:
losses
:
losses
:
l2_weight_decay
:
0.0005
l2_weight_decay
:
0.0005
one_hot
:
True
one_hot
:
True
label_smoothing
:
0.1
train_data
:
train_data
:
tfds_name
:
'
imagenet2012'
tfds_name
:
'
imagenet2012'
tfds_split
:
'
train'
tfds_split
:
'
train'
tfds_data_dir
:
'
~/tensorflow_datasets/'
tfds_data_dir
:
'
~/tensorflow_datasets/'
tfds_download
:
true
tfds_download
:
true
is_training
:
true
is_training
:
true
global_batch_size
:
128
global_batch_size
:
16
#default =
128
dtype
:
'
float16'
dtype
:
'
float16'
shuffle_buffer_size
:
100
validation_data
:
validation_data
:
tfds_name
:
'
imagenet2012'
tfds_name
:
'
imagenet2012'
tfds_split
:
'
validation'
tfds_split
:
'
validation'
tfds_data_dir
:
'
~/tensorflow_datasets/'
tfds_data_dir
:
'
~/tensorflow_datasets/'
tfds_download
:
true
tfds_download
:
true
is_training
:
true
is_training
:
true
global_batch_size
:
128
global_batch_size
:
16
#default =
128
dtype
:
'
float16'
dtype
:
'
float16'
drop_remainder
:
false
drop_remainder
:
false
shuffle_buffer_size
:
100
trainer
:
trainer
:
train_steps
:
12
00000
# epochs: 120
train_steps
:
96
00000
# epochs: 120
, 1200000 * 128/batchsize
validation_steps
:
4
00
# size of validation data
validation_steps
:
32
00
# size of validation data
, 400 * 128/batchsize
validation_interval
:
5
00
#
10000
validation_interval
:
100
00
#10000
steps_per_loop
:
10000
steps_per_loop
:
10000
summary_interval
:
10000
summary_interval
:
10000
checkpoint_interval
:
10000
checkpoint_interval
:
10000
...
@@ -45,11 +48,11 @@ trainer:
...
@@ -45,11 +48,11 @@ trainer:
learning_rate
:
learning_rate
:
type
:
'
polynomial'
type
:
'
polynomial'
polynomial
:
polynomial
:
initial_learning_rate
:
0.1
initial_learning_rate
:
0.0125
# 0.1 * batchsize/128, default =
0.1
end_learning_rate
:
0.0001
end_learning_rate
:
0.0000125
# 0.0001 * batchsize/128, default =
0.0001
power
:
4.0
power
:
4.0
decay_steps
:
1190
000
decay_steps
:
9592000
# 790000 * 128/batchsize, default = 800000 - 1000 = 799
000
warmup
:
warmup
:
type
:
'
linear'
type
:
'
linear'
linear
:
linear
:
warmup_steps
:
1
000
#
learning rate rises from 0 to 0.1 over 1000 steps
warmup_steps
:
8
000
#
0 to 0.1 over 1000 * 128/batchsize, default = 128
official/vision/beta/projects/yolo/dataloaders/classification_input.py
View file @
669807e6
...
@@ -20,9 +20,6 @@ from official.vision.beta.dataloaders import decoder
...
@@ -20,9 +20,6 @@ from official.vision.beta.dataloaders import decoder
from
official.vision.beta.dataloaders
import
parser
from
official.vision.beta.dataloaders
import
parser
from
official.vision.beta.ops
import
preprocess_ops
from
official.vision.beta.ops
import
preprocess_ops
MEAN_RGB
=
(
0.485
*
255
,
0.456
*
255
,
0.406
*
255
)
STDDEV_RGB
=
(
0.229
*
255
,
0.224
*
255
,
0.225
*
255
)
class
Decoder
(
decoder
.
Decoder
):
class
Decoder
(
decoder
.
Decoder
):
"""A tf.Example decoder for classification task."""
"""A tf.Example decoder for classification task."""
...
...
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