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
5d5441a1
Commit
5d5441a1
authored
Jan 08, 2021
by
Yeqing Li
Committed by
A. Unique TensorFlower
Jan 08, 2021
Browse files
Internal change
PiperOrigin-RevId: 350841628
parent
4523c446
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
official/vision/beta/configs/experiments/video_classification/k400_slowonly8x8_tpu.yaml
...xperiments/video_classification/k400_slowonly8x8_tpu.yaml
+3
-1
official/vision/beta/configs/video_classification.py
official/vision/beta/configs/video_classification.py
+4
-3
No files found.
official/vision/beta/configs/experiments/video_classification/k400_slowonly8x8_tpu.yaml
View file @
5d5441a1
...
@@ -4,6 +4,9 @@ runtime:
...
@@ -4,6 +4,9 @@ runtime:
mixed_precision_dtype
:
'
bfloat16'
mixed_precision_dtype
:
'
bfloat16'
task
:
task
:
model
:
model
:
dropout_rate
:
0.5
norm_activation
:
use_sync_bn
:
false
backbone
:
backbone
:
resnet_3d
:
resnet_3d
:
block_specs
:
!!python/tuple
block_specs
:
!!python/tuple
...
@@ -39,7 +42,6 @@ task:
...
@@ -39,7 +42,6 @@ task:
stem_conv_temporal_kernel_size
:
1
stem_conv_temporal_kernel_size
:
1
stem_conv_temporal_stride
:
1
stem_conv_temporal_stride
:
1
stem_pool_temporal_stride
:
1
stem_pool_temporal_stride
:
1
dropout_rate
:
0.5
train_data
:
train_data
:
name
:
kinetics400
name
:
kinetics400
feature_shape
:
!!python/tuple
feature_shape
:
!!python/tuple
...
...
official/vision/beta/configs/video_classification.py
View file @
5d5441a1
...
@@ -85,7 +85,8 @@ class VideoClassificationModel(hyperparams.Config):
...
@@ -85,7 +85,8 @@ class VideoClassificationModel(hyperparams.Config):
model_type
:
str
=
'video_classification'
model_type
:
str
=
'video_classification'
backbone
:
backbones_3d
.
Backbone3D
=
backbones_3d
.
Backbone3D
(
backbone
:
backbones_3d
.
Backbone3D
=
backbones_3d
.
Backbone3D
(
type
=
'resnet_3d'
,
resnet_3d
=
backbones_3d
.
ResNet3D50
())
type
=
'resnet_3d'
,
resnet_3d
=
backbones_3d
.
ResNet3D50
())
norm_activation
:
common
.
NormActivation
=
common
.
NormActivation
()
norm_activation
:
common
.
NormActivation
=
common
.
NormActivation
(
use_sync_bn
=
False
)
dropout_rate
:
float
=
0.2
dropout_rate
:
float
=
0.2
aggregate_endpoints
:
bool
=
False
aggregate_endpoints
:
bool
=
False
...
@@ -181,7 +182,7 @@ def video_classification_kinetics400() -> cfg.ExperimentConfig:
...
@@ -181,7 +182,7 @@ def video_classification_kinetics400() -> cfg.ExperimentConfig:
backbone
=
backbones_3d
.
Backbone3D
(
backbone
=
backbones_3d
.
Backbone3D
(
type
=
'resnet_3d'
,
resnet_3d
=
backbones_3d
.
ResNet3D50
()),
type
=
'resnet_3d'
,
resnet_3d
=
backbones_3d
.
ResNet3D50
()),
norm_activation
=
common
.
NormActivation
(
norm_activation
=
common
.
NormActivation
(
norm_momentum
=
0.9
,
norm_epsilon
=
1e-5
)),
norm_momentum
=
0.9
,
norm_epsilon
=
1e-5
,
use_sync_bn
=
False
)),
losses
=
Losses
(
l2_weight_decay
=
1e-4
),
losses
=
Losses
(
l2_weight_decay
=
1e-4
),
train_data
=
train_dataset
,
train_data
=
train_dataset
,
validation_data
=
validation_dataset
)
validation_data
=
validation_dataset
)
...
@@ -207,7 +208,7 @@ def video_classification_kinetics600() -> cfg.ExperimentConfig:
...
@@ -207,7 +208,7 @@ def video_classification_kinetics600() -> cfg.ExperimentConfig:
backbone
=
backbones_3d
.
Backbone3D
(
backbone
=
backbones_3d
.
Backbone3D
(
type
=
'resnet_3d'
,
resnet_3d
=
backbones_3d
.
ResNet3D50
()),
type
=
'resnet_3d'
,
resnet_3d
=
backbones_3d
.
ResNet3D50
()),
norm_activation
=
common
.
NormActivation
(
norm_activation
=
common
.
NormActivation
(
norm_momentum
=
0.9
,
norm_epsilon
=
1e-5
)),
norm_momentum
=
0.9
,
norm_epsilon
=
1e-5
,
use_sync_bn
=
False
)),
losses
=
Losses
(
l2_weight_decay
=
1e-4
),
losses
=
Losses
(
l2_weight_decay
=
1e-4
),
train_data
=
train_dataset
,
train_data
=
train_dataset
,
validation_data
=
validation_dataset
)
validation_data
=
validation_dataset
)
...
...
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