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
a0c3c440
"tests/vscode:/vscode.git/clone" did not exist on "010bc4ea198eeaf379926316b214c22a1dab8d17"
Commit
a0c3c440
authored
Apr 04, 2018
by
Zhichao Lu
Committed by
pkulzc
Apr 13, 2018
Browse files
Internal change.
PiperOrigin-RevId: 191668425
parent
b668f594
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
44 deletions
+16
-44
research/object_detection/dataset_tools/create_pascal_tf_record.py
...object_detection/dataset_tools/create_pascal_tf_record.py
+15
-17
research/object_detection/g3doc/evaluation_protocols.md
research/object_detection/g3doc/evaluation_protocols.md
+1
-1
research/object_detection/leakr.dic
research/object_detection/leakr.dic
+0
-26
No files found.
research/object_detection/dataset_tools/create_pascal_tf_record.py
View file @
a0c3c440
...
@@ -104,23 +104,21 @@ def dict_to_tf_example(data,
...
@@ -104,23 +104,21 @@ def dict_to_tf_example(data,
truncated
=
[]
truncated
=
[]
poses
=
[]
poses
=
[]
difficult_obj
=
[]
difficult_obj
=
[]
for
obj
in
data
[
'object'
]:
if
data
.
has_key
(
'object'
):
difficult
=
bool
(
int
(
obj
[
'difficult'
]))
for
obj
in
data
[
'object'
]:
if
ignore_difficult_instances
and
difficult
:
difficult
=
bool
(
int
(
obj
[
'difficult'
]))
continue
if
ignore_difficult_instances
and
difficult
:
continue
difficult_obj
.
append
(
int
(
difficult
))
difficult_obj
.
append
(
int
(
difficult
))
xmin
.
append
(
float
(
obj
[
'bndbox'
][
'xmin'
])
/
width
)
ymin
.
append
(
float
(
obj
[
'bndbox'
][
'ymin'
])
/
height
)
xmin
.
append
(
float
(
obj
[
'bndbox'
][
'xmin'
])
/
width
)
xmax
.
append
(
float
(
obj
[
'bndbox'
][
'xmax'
])
/
width
)
ymin
.
append
(
float
(
obj
[
'bndbox'
][
'ymin'
])
/
height
)
ymax
.
append
(
float
(
obj
[
'bndbox'
][
'ymax'
])
/
height
)
xmax
.
append
(
float
(
obj
[
'bndbox'
][
'xmax'
])
/
width
)
classes_text
.
append
(
obj
[
'name'
].
encode
(
'utf8'
))
ymax
.
append
(
float
(
obj
[
'bndbox'
][
'ymax'
])
/
height
)
classes
.
append
(
label_map_dict
[
obj
[
'name'
]])
classes_text
.
append
(
obj
[
'name'
].
encode
(
'utf8'
))
truncated
.
append
(
int
(
obj
[
'truncated'
]))
classes
.
append
(
label_map_dict
[
obj
[
'name'
]])
poses
.
append
(
obj
[
'pose'
].
encode
(
'utf8'
))
truncated
.
append
(
int
(
obj
[
'truncated'
]))
poses
.
append
(
obj
[
'pose'
].
encode
(
'utf8'
))
example
=
tf
.
train
.
Example
(
features
=
tf
.
train
.
Features
(
feature
=
{
example
=
tf
.
train
.
Example
(
features
=
tf
.
train
.
Features
(
feature
=
{
'image/height'
:
dataset_util
.
int64_feature
(
height
),
'image/height'
:
dataset_util
.
int64_feature
(
height
),
...
...
research/object_detection/g3doc/evaluation_protocols.md
View file @
a0c3c440
...
@@ -31,7 +31,7 @@ while for the Weighted PASCAL VOC metric the final mAP value will be influenced
...
@@ -31,7 +31,7 @@ while for the Weighted PASCAL VOC metric the final mAP value will be influenced
Similar to pascal voc 2007 detection metric, but computes the intersection over
Similar to pascal voc 2007 detection metric, but computes the intersection over
union based on the object masks instead of object boxes.
union based on the object masks instead of object boxes.
## Weighted PASCAL VOC
instance segmenta
tion metric
## Weighted PASCAL VOC
detec
tion metric
`EvalConfig.metrics_set='weighted_pascal_voc_instance_segmentation_metrics'`
`EvalConfig.metrics_set='weighted_pascal_voc_instance_segmentation_metrics'`
...
...
research/object_detection/leakr.dic
deleted
100644 → 0
View file @
b668f594
confidential;1;confidentialit,confidentiality
dogfood;1;
fishfood;1;
catfood;1;
teamfood;1;
droidfood;1;
//go/;1;
//sites/;1;
a/google.com;1;
corp.google.com;1;
.googleplex.com;1;
sandbox.;1;wallet-web.sandbox.,sandbox.google.com/checkout, sandbox.,paymentssandbox
stupid;1;astupidi
caution:;2;
fixme:;2;
fixme(;2;
internal only;2;
internal_only;2;
backdoor;2;
STOPSHIP;2;
ridiculous;1;
notasecret;1;
@google.com;1;noreply@google.com
$RE:chmod [0-9]?777;3;chmod (0)777
mactruck;2;
seastar;2;
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