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
8b641b13
Unverified
Commit
8b641b13
authored
Mar 26, 2022
by
Srihari Humbarwadi
Committed by
GitHub
Mar 26, 2022
Browse files
Merge branch 'tensorflow:master' into panoptic-deeplab
parents
7cffacfe
357fa547
Changes
411
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
13 additions
and
41 deletions
+13
-41
official/projects/teams/teams_experiments_test.py
official/projects/teams/teams_experiments_test.py
+1
-4
official/projects/token_dropping/README.md
official/projects/token_dropping/README.md
+4
-4
official/projects/video_ssl/configs/__init__.py
official/projects/video_ssl/configs/__init__.py
+0
-1
official/projects/video_ssl/configs/video_ssl.py
official/projects/video_ssl/configs/video_ssl.py
+0
-1
official/projects/video_ssl/configs/video_ssl_test.py
official/projects/video_ssl/configs/video_ssl_test.py
+0
-1
official/projects/video_ssl/dataloaders/video_ssl_input.py
official/projects/video_ssl/dataloaders/video_ssl_input.py
+0
-1
official/projects/video_ssl/dataloaders/video_ssl_input_test.py
...al/projects/video_ssl/dataloaders/video_ssl_input_test.py
+0
-1
official/projects/video_ssl/losses/losses.py
official/projects/video_ssl/losses/losses.py
+0
-1
official/projects/video_ssl/ops/video_ssl_preprocess_ops.py
official/projects/video_ssl/ops/video_ssl_preprocess_ops.py
+0
-1
official/projects/video_ssl/tasks/linear_eval.py
official/projects/video_ssl/tasks/linear_eval.py
+1
-2
official/projects/video_ssl/tasks/pretrain.py
official/projects/video_ssl/tasks/pretrain.py
+0
-1
official/projects/video_ssl/tasks/pretrain_test.py
official/projects/video_ssl/tasks/pretrain_test.py
+0
-1
official/projects/video_ssl/train.py
official/projects/video_ssl/train.py
+1
-2
official/projects/vit/configs/__init__.py
official/projects/vit/configs/__init__.py
+0
-1
official/projects/vit/configs/backbones.py
official/projects/vit/configs/backbones.py
+0
-1
official/projects/vit/configs/image_classification.py
official/projects/vit/configs/image_classification.py
+6
-14
official/projects/vit/modeling/vit.py
official/projects/vit/modeling/vit.py
+0
-1
official/projects/vit/modeling/vit_test.py
official/projects/vit/modeling/vit_test.py
+0
-1
official/projects/vit/train.py
official/projects/vit/train.py
+0
-1
official/projects/volumetric_models/configs/backbones.py
official/projects/volumetric_models/configs/backbones.py
+0
-1
No files found.
Too many changes to show.
To preserve performance only
411 of 411+
files are displayed.
Plain diff
Email patch
official/projects/teams/teams_experiments_test.py
View file @
8b641b13
...
@@ -12,15 +12,12 @@
...
@@ -12,15 +12,12 @@
# 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
"""Tests for teams_experiments."""
"""Tests for teams_experiments."""
from
absl.testing
import
parameterized
from
absl.testing
import
parameterized
import
tensorflow
as
tf
import
tensorflow
as
tf
# pylint: disable=unused-import
from
official.common
import
registry_imports
# pylint: disable=unused-import
from
official.common
import
registry_imports
# pylint: enable=unused-import
from
official.core
import
config_definitions
as
cfg
from
official.core
import
config_definitions
as
cfg
from
official.core
import
exp_factory
from
official.core
import
exp_factory
...
...
official/projects/token_dropping/README.md
View file @
8b641b13
...
@@ -95,10 +95,10 @@ modeling library:
...
@@ -95,10 +95,10 @@ modeling library:
Please cite our paper:
Please cite our paper:
```
```
@
inproceedings{pang2022
,
@
article{hou2022token
,
title={Token Dropping for Efficient BERT Pretraining},
title={Token Dropping for Efficient BERT Pretraining},
author={Richard Yuanzhe
P
an
g*, Le H
ou
*
, Tianyi
Zho
u, Yuexin
Wu
, Xinying Song, Xiaodan
Song
, Denny
Zhou
},
author={
Pang,
Richard Yuanzhe an
d Hou, Le and Zh
ou, Tianyi
and W
u, Yuexin
and Song
, Xinying
and
Song, Xiaodan
and Zhou
, Denny},
year={2022
},
journal={arXiv preprint arXiv:2203.13240
},
organization={Association for Computational Linguistics
}
year={2022
}
}
}
```
```
official/projects/video_ssl/configs/__init__.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""Configs package definition."""
"""Configs package definition."""
from
official.projects.video_ssl.configs
import
video_ssl
from
official.projects.video_ssl.configs
import
video_ssl
official/projects/video_ssl/configs/video_ssl.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""Video classification configuration definition."""
"""Video classification configuration definition."""
...
...
official/projects/video_ssl/configs/video_ssl_test.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
# pylint: disable=unused-import
# pylint: disable=unused-import
from
absl.testing
import
parameterized
from
absl.testing
import
parameterized
...
...
official/projects/video_ssl/dataloaders/video_ssl_input.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""Parser for video and label datasets."""
"""Parser for video and label datasets."""
from
typing
import
Dict
,
Optional
,
Tuple
from
typing
import
Dict
,
Optional
,
Tuple
...
...
official/projects/video_ssl/dataloaders/video_ssl_input_test.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
import
io
import
io
...
...
official/projects/video_ssl/losses/losses.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""Define losses."""
"""Define losses."""
# Import libraries
# Import libraries
...
...
official/projects/video_ssl/ops/video_ssl_preprocess_ops.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""Utils for customed ops for video ssl."""
"""Utils for customed ops for video ssl."""
import
functools
import
functools
...
...
official/projects/video_ssl/tasks/linear_eval.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""Video ssl linear evaluation task definition."""
"""Video ssl linear evaluation task definition."""
from
typing
import
Any
,
Optional
,
List
,
Tuple
from
typing
import
Any
,
Optional
,
List
,
Tuple
from
absl
import
logging
from
absl
import
logging
...
@@ -20,7 +19,7 @@ import tensorflow as tf
...
@@ -20,7 +19,7 @@ import tensorflow as tf
# pylint: disable=unused-import
# pylint: disable=unused-import
from
official.core
import
task_factory
from
official.core
import
task_factory
from
official.projects.video_ssl.configs
.google
import
video_ssl
as
exp_cfg
from
official.projects.video_ssl.configs
import
video_ssl
as
exp_cfg
from
official.projects.video_ssl.modeling
import
video_ssl_model
from
official.projects.video_ssl.modeling
import
video_ssl_model
from
official.vision.tasks
import
video_classification
from
official.vision.tasks
import
video_classification
...
...
official/projects/video_ssl/tasks/pretrain.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""Video ssl pretrain task definition."""
"""Video ssl pretrain task definition."""
from
absl
import
logging
from
absl
import
logging
import
tensorflow
as
tf
import
tensorflow
as
tf
...
...
official/projects/video_ssl/tasks/pretrain_test.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
import
functools
import
functools
import
os
import
os
...
...
official/projects/video_ssl/train.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""Training driver."""
"""Training driver."""
from
absl
import
app
from
absl
import
app
...
@@ -28,7 +27,7 @@ from official.core import train_utils
...
@@ -28,7 +27,7 @@ from official.core import train_utils
from
official.modeling
import
performance
from
official.modeling
import
performance
from
official.projects.video_ssl.modeling
import
video_ssl_model
from
official.projects.video_ssl.modeling
import
video_ssl_model
from
official.projects.video_ssl.tasks
import
linear_eval
from
official.projects.video_ssl.tasks
import
linear_eval
from
official.projects.video_ssl.tasks
.google
import
pretrain
from
official.projects.video_ssl.tasks
import
pretrain
from
official.vision
import
registry_imports
from
official.vision
import
registry_imports
# pylint: disable=unused-import
# pylint: disable=unused-import
...
...
official/projects/vit/configs/__init__.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""Configs package definition."""
"""Configs package definition."""
from
official.projects.vit.configs
import
image_classification
from
official.projects.vit.configs
import
image_classification
official/projects/vit/configs/backbones.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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."""
from
typing
import
Optional
from
typing
import
Optional
...
...
official/projects/vit/configs/image_classification.py
View file @
8b641b13
...
@@ -12,39 +12,31 @@
...
@@ -12,39 +12,31 @@
# 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
"""Image classification configuration definition."""
"""Image classification configuration definition."""
import
os
from
typing
import
List
,
Optional
import
dataclasses
import
dataclasses
import
os
from
typing
import
Optional
from
official.core
import
config_definitions
as
cfg
from
official.core
import
config_definitions
as
cfg
from
official.core
import
exp_factory
from
official.core
import
exp_factory
from
official.core
import
task_factory
from
official.core
import
task_factory
from
official.modeling
import
hyperparams
from
official.modeling
import
hyperparams
from
official.modeling
import
optimization
from
official.modeling
import
optimization
from
official.projects.vit.configs
import
backbones
from
official.vision.configs
import
common
from
official.vision.configs
import
common
from
official.vision.configs
import
image_classification
as
img_cls_cfg
from
official.vision.configs
import
image_classification
as
img_cls_cfg
from
official.projects.vit.configs
import
backbones
from
official.vision.tasks
import
image_classification
from
official.vision.tasks
import
image_classification
# pytype: disable=wrong-keyword-args
DataConfig
=
img_cls_cfg
.
DataConfig
DataConfig
=
img_cls_cfg
.
DataConfig
@
dataclasses
.
dataclass
@
dataclasses
.
dataclass
class
ImageClassificationModel
(
hyperparams
.
Config
):
class
ImageClassificationModel
(
img_cls_cfg
.
ImageClassificationModel
):
"""The model config."""
"""The model config."""
num_classes
:
int
=
0
input_size
:
List
[
int
]
=
dataclasses
.
field
(
default_factory
=
list
)
backbone
:
backbones
.
Backbone
=
backbones
.
Backbone
(
backbone
:
backbones
.
Backbone
=
backbones
.
Backbone
(
type
=
'vit'
,
vit
=
backbones
.
VisionTransformer
())
type
=
'vit'
,
vit
=
backbones
.
VisionTransformer
())
dropout_rate
:
float
=
0.0
norm_activation
:
common
.
NormActivation
=
common
.
NormActivation
(
use_sync_bn
=
False
)
# Adds a BatchNormalization layer pre-GlobalAveragePooling in classification
add_head_batch_norm
:
bool
=
False
kernel_initializer
:
str
=
'random_uniform'
@
dataclasses
.
dataclass
@
dataclasses
.
dataclass
...
...
official/projects/vit/modeling/vit.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""VisionTransformer models."""
"""VisionTransformer models."""
import
tensorflow
as
tf
import
tensorflow
as
tf
...
...
official/projects/vit/modeling/vit_test.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""Tests for VIT."""
"""Tests for VIT."""
from
absl.testing
import
parameterized
from
absl.testing
import
parameterized
...
...
official/projects/vit/train.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
"""TensorFlow Model Garden Vision training driver, including ViT configs.."""
"""TensorFlow Model Garden Vision training driver, including ViT configs.."""
from
absl
import
app
from
absl
import
app
...
...
official/projects/volumetric_models/configs/backbones.py
View file @
8b641b13
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
# 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
typing
import
Optional
,
Sequence
from
typing
import
Optional
,
Sequence
...
...
Prev
1
…
3
4
5
6
7
8
9
10
11
…
21
Next
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