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
32e4ca51
Commit
32e4ca51
authored
Nov 28, 2023
by
qianyj
Browse files
Update code to v2.11.0
parents
9485aa1d
71060f67
Changes
772
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
28 additions
and
22 deletions
+28
-22
official/legacy/detection/dataloader/olnmask_parser.py
official/legacy/detection/dataloader/olnmask_parser.py
+1
-1
official/legacy/detection/dataloader/retinanet_parser.py
official/legacy/detection/dataloader/retinanet_parser.py
+1
-1
official/legacy/detection/dataloader/shapemask_parser.py
official/legacy/detection/dataloader/shapemask_parser.py
+1
-1
official/legacy/detection/dataloader/tf_example_decoder.py
official/legacy/detection/dataloader/tf_example_decoder.py
+1
-1
official/legacy/detection/evaluation/__init__.py
official/legacy/detection/evaluation/__init__.py
+1
-1
official/legacy/detection/evaluation/coco_evaluator.py
official/legacy/detection/evaluation/coco_evaluator.py
+1
-1
official/legacy/detection/evaluation/coco_utils.py
official/legacy/detection/evaluation/coco_utils.py
+1
-1
official/legacy/detection/evaluation/factory.py
official/legacy/detection/evaluation/factory.py
+1
-1
official/legacy/detection/executor/__init__.py
official/legacy/detection/executor/__init__.py
+1
-1
official/legacy/detection/executor/detection_executor.py
official/legacy/detection/executor/detection_executor.py
+1
-1
official/legacy/detection/executor/distributed_executor.py
official/legacy/detection/executor/distributed_executor.py
+9
-3
official/legacy/detection/main.py
official/legacy/detection/main.py
+1
-1
official/legacy/detection/modeling/__init__.py
official/legacy/detection/modeling/__init__.py
+1
-1
official/legacy/detection/modeling/architecture/__init__.py
official/legacy/detection/modeling/architecture/__init__.py
+1
-1
official/legacy/detection/modeling/architecture/factory.py
official/legacy/detection/modeling/architecture/factory.py
+1
-1
official/legacy/detection/modeling/architecture/fpn.py
official/legacy/detection/modeling/architecture/fpn.py
+1
-1
official/legacy/detection/modeling/architecture/heads.py
official/legacy/detection/modeling/architecture/heads.py
+1
-1
official/legacy/detection/modeling/architecture/identity.py
official/legacy/detection/modeling/architecture/identity.py
+1
-1
official/legacy/detection/modeling/architecture/nn_blocks.py
official/legacy/detection/modeling/architecture/nn_blocks.py
+1
-1
official/legacy/detection/modeling/architecture/nn_ops.py
official/legacy/detection/modeling/architecture/nn_ops.py
+1
-1
No files found.
Too many changes to show.
To preserve performance only
772 of 772+
files are displayed.
Plain diff
Email patch
official/legacy/detection/dataloader/olnmask_parser.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/dataloader/retinanet_parser.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/dataloader/shapemask_parser.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/dataloader/tf_example_decoder.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/evaluation/__init__.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/evaluation/coco_evaluator.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/evaluation/coco_utils.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/evaluation/factory.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/executor/__init__.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/executor/detection_executor.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/executor/distributed_executor.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -683,8 +683,14 @@ class DistributedExecutor(object):
if
not
checkpoint_path
:
raise
ValueError
(
'checkpoint path is empty'
)
reader
=
tf
.
compat
.
v1
.
train
.
NewCheckpointReader
(
checkpoint_path
)
current_step
=
reader
.
get_tensor
(
'optimizer/iter/.ATTRIBUTES/VARIABLE_VALUE'
)
if
reader
.
has_tensor
(
'optimizer/iter/.ATTRIBUTES/VARIABLE_VALUE'
):
# Legacy keras optimizer iteration.
current_step
=
reader
.
get_tensor
(
'optimizer/iter/.ATTRIBUTES/VARIABLE_VALUE'
)
else
:
# New keras optimizer iteration.
current_step
=
reader
.
get_tensor
(
'optimizer/_iterations/.ATTRIBUTES/VARIABLE_VALUE'
)
logging
.
info
(
'Checkpoint file %s found and restoring from '
'checkpoint'
,
checkpoint_path
)
status
=
checkpoint
.
restore
(
checkpoint_path
)
...
...
official/legacy/detection/main.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/modeling/__init__.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/modeling/architecture/__init__.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/modeling/architecture/factory.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/modeling/architecture/fpn.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/modeling/architecture/heads.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/modeling/architecture/identity.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/modeling/architecture/nn_blocks.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/legacy/detection/modeling/architecture/nn_ops.py
View file @
32e4ca51
# Copyright 202
1
The TensorFlow Authors. All Rights Reserved.
# Copyright 202
2
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
Prev
1
2
3
4
5
6
7
8
9
10
…
39
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