"tests/vscode:/vscode.git/clone" did not exist on "010bc4ea198eeaf379926316b214c22a1dab8d17"
Commit a0c3c440 authored by Zhichao Lu's avatar Zhichao Lu Committed by pkulzc
Browse files

Internal change.

PiperOrigin-RevId: 191668425
parent b668f594
...@@ -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),
......
...@@ -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 segmentation metric ## Weighted PASCAL VOC detection metric
`EvalConfig.metrics_set='weighted_pascal_voc_instance_segmentation_metrics'` `EvalConfig.metrics_set='weighted_pascal_voc_instance_segmentation_metrics'`
......
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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment