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
3d081c09
Commit
3d081c09
authored
Nov 20, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 343502901
parent
a2de5799
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
official/vision/beta/configs/experiments/image_classification/imagenet_resnet300_tpu.yaml
...eriments/image_classification/imagenet_resnet300_tpu.yaml
+53
-0
official/vision/beta/modeling/backbones/resnet.py
official/vision/beta/modeling/backbones/resnet.py
+6
-0
No files found.
official/vision/beta/configs/experiments/image_classification/imagenet_resnet300_tpu.yaml
0 → 100644
View file @
3d081c09
# ResNet-300 ImageNet classification. 82.6% top-1 and 96.3% top-5 accuracy.
runtime
:
distribution_strategy
:
'
tpu'
mixed_precision_dtype
:
'
bfloat16'
task
:
model
:
num_classes
:
1001
input_size
:
[
380
,
380
,
3
]
backbone
:
type
:
'
resnet'
resnet
:
model_id
:
300
stem_type
:
'
v1'
se_ratio
:
0.25
stochastic_depth_drop_rate
:
0.2
norm_activation
:
activation
:
'
swish'
losses
:
l2_weight_decay
:
0.0001
one_hot
:
true
label_smoothing
:
0.1
train_data
:
input_path
:
'
imagenet-2012-tfrecord/train*'
is_training
:
true
global_batch_size
:
4096
dtype
:
'
bfloat16'
validation_data
:
input_path
:
'
imagenet-2012-tfrecord/valid*'
is_training
:
false
global_batch_size
:
4096
dtype
:
'
bfloat16'
drop_remainder
:
false
trainer
:
train_steps
:
62400
validation_steps
:
13
validation_interval
:
312
steps_per_loop
:
312
summary_interval
:
312
checkpoint_interval
:
312
optimizer_config
:
optimizer
:
type
:
'
sgd'
sgd
:
momentum
:
0.9
learning_rate
:
type
:
'
cosine'
cosine
:
initial_learning_rate
:
1.6
decay_steps
:
62400
warmup
:
type
:
'
linear'
linear
:
warmup_steps
:
1560
official/vision/beta/modeling/backbones/resnet.py
View file @
3d081c09
...
@@ -69,6 +69,12 @@ RESNET_SPECS = {
...
@@ -69,6 +69,12 @@ RESNET_SPECS = {
(
'bottleneck'
,
256
,
36
),
(
'bottleneck'
,
256
,
36
),
(
'bottleneck'
,
512
,
3
),
(
'bottleneck'
,
512
,
3
),
],
],
300
:
[
(
'bottleneck'
,
64
,
4
),
(
'bottleneck'
,
128
,
36
),
(
'bottleneck'
,
256
,
54
),
(
'bottleneck'
,
512
,
4
),
],
}
}
...
...
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