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
1596bb28
Commit
1596bb28
authored
Feb 09, 2021
by
Yeqing Li
Committed by
A. Unique TensorFlower
Feb 09, 2021
Browse files
Internal change
PiperOrigin-RevId: 356578560
parent
986b8776
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
official/vision/beta/tasks/image_classification.py
official/vision/beta/tasks/image_classification.py
+2
-1
official/vision/beta/tasks/maskrcnn.py
official/vision/beta/tasks/maskrcnn.py
+2
-1
official/vision/beta/tasks/retinanet.py
official/vision/beta/tasks/retinanet.py
+2
-1
No files found.
official/vision/beta/tasks/image_classification.py
View file @
1596bb28
...
...
@@ -68,7 +68,8 @@ class ImageClassificationTask(base_task.Task):
status
=
ckpt
.
restore
(
ckpt_dir_or_file
)
status
.
expect_partial
().
assert_existing_objects_matched
()
else
:
assert
"Only 'all' or 'backbone' can be used to initialize the model."
raise
ValueError
(
"Only 'all' or 'backbone' can be used to initialize the model."
)
logging
.
info
(
'Finished loading pretrained checkpoint from %s'
,
ckpt_dir_or_file
)
...
...
official/vision/beta/tasks/maskrcnn.py
View file @
1596bb28
...
...
@@ -100,7 +100,8 @@ class MaskRCNNTask(base_task.Task):
status
=
ckpt
.
restore
(
ckpt_dir_or_file
)
status
.
expect_partial
().
assert_existing_objects_matched
()
else
:
assert
"Only 'all' or 'backbone' can be used to initialize the model."
raise
ValueError
(
"Only 'all' or 'backbone' can be used to initialize the model."
)
logging
.
info
(
'Finished loading pretrained checkpoint from %s'
,
ckpt_dir_or_file
)
...
...
official/vision/beta/tasks/retinanet.py
View file @
1596bb28
...
...
@@ -78,7 +78,8 @@ class RetinaNetTask(base_task.Task):
status
=
ckpt
.
restore
(
ckpt_dir_or_file
)
status
.
expect_partial
().
assert_existing_objects_matched
()
else
:
assert
"Only 'all' or 'backbone' can be used to initialize the model."
raise
ValueError
(
"Only 'all' or 'backbone' can be used to initialize the model."
)
logging
.
info
(
'Finished loading pretrained checkpoint from %s'
,
ckpt_dir_or_file
)
...
...
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