Why my eval result is worse than paper?
I follow the tutorial to evaluate coco 2017 eval set with D0 model,and I got a worse result than the paper. The mAP is only 0.268. What are the possible causes?
creating index... index created! Running per image evaluation... Evaluate annotation type bbox DONE (t=50.02s). Accumulating evaluation results... DONE (t=0.35s). Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.268 Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.467 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.265 Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.111 Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.507 Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.628 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.140 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.335 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.374 Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.204 Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.623 Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.757
I just rerun the tutorial in colab and get the following results:
Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.335 Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.515 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.353 Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.125 Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.388 Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.526 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.287 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.439 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.465 Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.193 Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.549 Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.685
Can you share you colab?
@mingxingtan Thanks for your reply! I run the code in my onw GPU (GTX 1080 Ti). This is the process:
//Convert dataset
python dataset/create_coco_tfrecord.py --image_dir=val2017 --caption_annotations_file=annotations/captions_val2017.json --output_file_prefix=tfrecord/val --num_shards=32 2020-04-09 11:50:08.063611: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-10.0/lib64:/usr/local/cuda-10.0/lib64 :/home/user/tensorrt_tar/TensorRT-5.1.5.0/lib 2020-04-09 11:50:08.063685: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-10.0/lib64:/usr/local/cuda-10.0/lib64 :/home/user/tensorrt_tar/TensorRT-5.1.5.0/lib 2020-04-09 11:50:08.063694: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly. I0409 11:50:08.485743 140506564941568 create_coco_tfrecord.py:286] writing to output path: tfrecord/val I0409 11:50:08.542965 140506564941568 create_coco_tfrecord.py:238] Building caption index. I0409 11:50:08.547083 140506564941568 create_coco_tfrecord.py:250] 0 images are missing captions. I0409 11:50:08.605515 140506564941568 create_coco_tfrecord.py:324] On image 0 of 5000 I0409 11:50:08.631770 140506564941568 create_coco_tfrecord.py:324] On image 100 of 5000 I0409 11:50:08.656622 140506564941568 create_coco_tfrecord.py:324] On image 200 of 5000 I0409 11:50:08.682685 140506564941568 create_coco_tfrecord.py:324] On image 300 of 5000 I0409 11:50:08.709277 140506564941568 create_coco_tfrecord.py:324] On image 400 of 5000 I0409 11:50:08.736542 140506564941568 create_coco_tfrecord.py:324] On image 500 of 5000 I0409 11:50:08.764797 140506564941568 create_coco_tfrecord.py:324] On image 600 of 5000 I0409 11:50:08.789028 140506564941568 create_coco_tfrecord.py:324] On image 700 of 5000 I0409 11:50:08.813097 140506564941568 create_coco_tfrecord.py:324] On image 800 of 5000 I0409 11:50:08.840030 140506564941568 create_coco_tfrecord.py:324] On image 900 of 5000 I0409 11:50:08.864303 140506564941568 create_coco_tfrecord.py:324] On image 1000 of 5000 I0409 11:50:08.891182 140506564941568 create_coco_tfrecord.py:324] On image 1100 of 5000 I0409 11:50:08.919368 140506564941568 create_coco_tfrecord.py:324] On image 1200 of 5000 I0409 11:50:08.948800 140506564941568 create_coco_tfrecord.py:324] On image 1300 of 5000 I0409 11:50:08.971351 140506564941568 create_coco_tfrecord.py:324] On image 1400 of 5000 I0409 11:50:08.999068 140506564941568 create_coco_tfrecord.py:324] On image 1500 of 5000 I0409 11:50:09.027910 140506564941568 create_coco_tfrecord.py:324] On image 1600 of 5000 I0409 11:50:09.053650 140506564941568 create_coco_tfrecord.py:324] On image 1700 of 5000 I0409 11:50:09.077077 140506564941568 create_coco_tfrecord.py:324] On image 1800 of 5000 I0409 11:50:09.101296 140506564941568 create_coco_tfrecord.py:324] On image 1900 of 5000 I0409 11:50:09.130399 140506564941568 create_coco_tfrecord.py:324] On image 2000 of 5000 I0409 11:50:09.153451 140506564941568 create_coco_tfrecord.py:324] On image 2100 of 5000 I0409 11:50:09.185653 140506564941568 create_coco_tfrecord.py:324] On image 2200 of 5000 I0409 11:50:09.205258 140506564941568 create_coco_tfrecord.py:324] On image 2300 of 5000 I0409 11:50:09.231616 140506564941568 create_coco_tfrecord.py:324] On image 2400 of 5000 I0409 11:50:09.257844 140506564941568 create_coco_tfrecord.py:324] On image 2500 of 5000 I0409 11:50:09.288482 140506564941568 create_coco_tfrecord.py:324] On image 2600 of 5000 I0409 11:50:09.317614 140506564941568 create_coco_tfrecord.py:324] On image 2700 of 5000 I0409 11:50:09.342591 140506564941568 create_coco_tfrecord.py:324] On image 2800 of 5000 I0409 11:50:09.373456 140506564941568 create_coco_tfrecord.py:324] On image 2900 of 5000 I0409 11:50:09.401907 140506564941568 create_coco_tfrecord.py:324] On image 3000 of 5000 I0409 11:50:09.429418 140506564941568 create_coco_tfrecord.py:324] On image 3100 of 5000 I0409 11:50:09.458590 140506564941568 create_coco_tfrecord.py:324] On image 3200 of 5000 I0409 11:50:09.487342 140506564941568 create_coco_tfrecord.py:324] On image 3300 of 5000 I0409 11:50:09.513646 140506564941568 create_coco_tfrecord.py:324] On image 3400 of 5000 I0409 11:50:09.540153 140506564941568 create_coco_tfrecord.py:324] On image 3500 of 5000 I0409 11:50:09.568074 140506564941568 create_coco_tfrecord.py:324] On image 3600 of 5000 I0409 11:50:09.593785 140506564941568 create_coco_tfrecord.py:324] On image 3700 of 5000 I0409 11:50:09.621153 140506564941568 create_coco_tfrecord.py:324] On image 3800 of 5000 I0409 11:50:09.648133 140506564941568 create_coco_tfrecord.py:324] On image 3900 of 5000 I0409 11:50:09.676224 140506564941568 create_coco_tfrecord.py:324] On image 4000 of 5000 I0409 11:50:09.704581 140506564941568 create_coco_tfrecord.py:324] On image 4100 of 5000 I0409 11:50:09.733018 140506564941568 create_coco_tfrecord.py:324] On image 4200 of 5000 I0409 11:50:09.757990 140506564941568 create_coco_tfrecord.py:324] On image 4300 of 5000 I0409 11:50:09.786792 140506564941568 create_coco_tfrecord.py:324] On image 4400 of 5000 I0409 11:50:09.816075 140506564941568 create_coco_tfrecord.py:324] On image 4500 of 5000 I0409 11:50:09.841276 140506564941568 create_coco_tfrecord.py:324] On image 4600 of 5000 I0409 11:50:09.868928 140506564941568 create_coco_tfrecord.py:324] On image 4700 of 5000 I0409 11:50:09.898080 140506564941568 create_coco_tfrecord.py:324] On image 4800 of 5000 I0409 11:50:09.924299 140506564941568 create_coco_tfrecord.py:324] On image 4900 of 5000 I0409 11:50:10.003060 140506564941568 create_coco_tfrecord.py:336] Finished writing, skipped 0 annotations.
//run eval
`python main.py --mode=eval --model_name=efficientdet-d0 --model_dir=efficientdet-d0 --validation_file_pattern=tfrecord/val* --val_json_file=annotations/instances_val2017.json --hparams="use_bfloat16=false" --use_tpu=False WARNING:tensorflow:From /home/user/anaconda2/envs/maskrcnn_onnx/lib/python3.7/site-packages/tensorflow_core/python/compat/v2_compat.py:65: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term WARNING:tensorflow:From main.py:222: The name tf.estimator.tpu.TPUConfig is deprecated. Please use tf.compat.v1.estimator.tpu.TPUConfig instead.
W0409 16:13:20.764164 140101117593344 module_wrapper.py:137] From main.py:222: The name tf.estimator.tpu.TPUConfig is deprecated. Please use tf.compat.v1.estimator.tpu.TPUConfig instead.
I0409 16:13:20.764340 140101117593344 main.py:242] {'name': 'efficientdet-d0', 'image_size': 512, 'input_rand_hflip': True, 'train_scale_min': 0.1, 'train_scale_max': 2.0, 'autoaugment_policy': None, 'num_classes': 90, 'skip_crowd_during_training': True, 'min_level': 3, 'max_level': 7, 'num_scales': 3, 'aspect_ratios': [(1.0, 1.0), (1.4, 0.7), (0.7, 1.4)], 'anchor_scale': 4.0, 'is_training_bn': True, 'momentum': 0.9, 'learning_rate': 0.08, 'lr_warmup_init': 0.008, 'lr_warmup_epoch': 1.0, 'first_lr_drop_epoch': 200.0, 'second_lr_drop_epoch': 250.0, 'clip_gradients_norm': 10.0, 'num_epochs': 15, 'alpha': 0.25, 'gamma': 1.5, 'delta': 0.1, 'box_loss_weight': 50.0, 'weight_decay': 4e-05, 'use_bfloat16': False, 'box_class_repeats': 3, 'fpn_cell_repeats': 3, 'fpn_num_filters': 64, 'separable_conv': True, 'apply_bn_for_resampling': True, 'conv_after_downsample': False, 'conv_bn_relu_pattern': False, 'use_native_resize_op': False, 'pooling_type': None, 'fpn_name': None, 'fpn_config': None, 'survival_prob': None, 'lr_decay_method': 'cosine', 'moving_average_decay': 0.9998, 'ckpt_var_scope': None, 'backbone_name': 'efficientnet-b0', 'backbone_config': None, 'resnet_depth': 50, 'model_name': 'efficientdet-d0', 'iterations_per_loop': 100, 'model_dir': 'efficientdet-d0', 'num_shards': 8, 'num_examples_per_epoch': 120000, 'use_tpu': False, 'backbone_ckpt': '', 'ckpt': None, 'val_json_file': 'annotations/instances_val2017.json', 'testdev_dir': None, 'mode': 'eval'}
INFO:tensorflow:Using config: {'_model_dir': 'efficientdet-d0', '_tf_random_seed': None, '_save_summary_steps': 100, '_save_checkpoints_steps': None, '_save_checkpoints_secs': 600, '_session_config': allow_soft_placement: true
, '_keep_checkpoint_max': 5, '_keep_checkpoint_every_n_hours': 10000, '_log_step_count_steps': None, '_train_distribute': None, '_device_fn': None, '_protocol': None, '_eval_distribute': None, '_experimental_distribute': None, '_experimental_max_worker_delay_secs': None, '_session_creation_timeout_secs': 7200, '_service': None, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x7f6b7ed96fd0>, '_task_type': 'worker', '_task_id': 0, '_global_id_in_cluster': 0, '_master': '', '_evaluation_master': '', '_is_chief': True, '_num_ps_replicas': 0, '_num_worker_replicas': 1, '_tpu_config': TPUConfig(iterations_per_loop=100, num_shards=8, num_cores_per_replica=None, per_host_input_for_training=3, tpu_job_name=None, initial_infeed_sleep_secs=None, input_partition_dims=None, eval_training_input_configuration=2, experimental_host_call_every_n_steps=1), '_cluster': None}
I0409 16:13:20.764592 140101117593344 estimator.py:212] Using config: {'_model_dir': 'efficientdet-d0', '_tf_random_seed': None, '_save_summary_steps': 100, '_save_checkpoints_steps': None, '_save_checkpoints_secs': 600, '_session_config': allow_soft_placement: true
, '_keep_checkpoint_max': 5, '_keep_checkpoint_every_n_hours': 10000, '_log_step_count_steps': None, '_train_distribute': None, '_device_fn': None, '_protocol': None, '_eval_distribute': None, '_experimental_distribute': None, '_experimental_max_worker_delay_secs': None, '_session_creation_timeout_secs': 7200, '_service': None, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x7f6b7ed96fd0>, '_task_type': 'worker', '_task_id': 0, '_global_id_in_cluster': 0, '_master': '', '_evaluation_master': '', '_is_chief': True, '_num_ps_replicas': 0, '_num_worker_replicas': 1, '_tpu_config': TPUConfig(iterations_per_loop=100, num_shards=8, num_cores_per_replica=None, per_host_input_for_training=3, tpu_job_name=None, initial_infeed_sleep_secs=None, input_partition_dims=None, eval_training_input_configuration=2, experimental_host_call_every_n_steps=1), '_cluster': None}
INFO:tensorflow:_TPUContext: eval_on_tpu True
I0409 16:13:20.764851 140101117593344 tpu_context.py:221] _TPUContext: eval_on_tpu True
WARNING:tensorflow:eval_on_tpu ignored because use_tpu is False.
W0409 16:13:20.764929 140101117593344 tpu_context.py:223] eval_on_tpu ignored because use_tpu is False.
INFO:tensorflow:Waiting for new checkpoint at efficientdet-d0
I0409 16:13:20.764978 140101117593344 checkpoint_utils.py:124] Waiting for new checkpoint at efficientdet-d0
INFO:tensorflow:Found new checkpoint at efficientdet-d0/model
I0409 16:13:20.766227 140101117593344 checkpoint_utils.py:133] Found new checkpoint at efficientdet-d0/model
I0409 16:13:20.766292 140101117593344 main.py:314] Starting to evaluate.
WARNING:tensorflow:From /home/user/anaconda2/envs/maskrcnn_onnx/lib/python3.7/site-packages/tensorflow_core/python/ops/resource_variable_ops.py:1630: calling BaseResourceVariable.init (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
W0409 16:13:20.769532 140101117593344 deprecation.py:506] From /home/user/anaconda2/envs/maskrcnn_onnx/lib/python3.7/site-packages/tensorflow_core/python/ops/resource_variable_ops.py:1630: calling BaseResourceVariable.init (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
WARNING:tensorflow:From /home/user/github/test/automl/efficientdet/dataloader.py:353: parallel_interleave (from tensorflow.python.data.experimental.ops.interleave_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.data.Dataset.interleave(map_func, cycle_length, block_length, num_parallel_calls=tf.data.experimental.AUTOTUNE) instead. If sloppy execution is desired, use tf.data.Options.experimental_determinstic.
W0409 16:13:20.782391 140101117593344 deprecation.py:323] From /home/user/github/test/automl/efficientdet/dataloader.py:353: parallel_interleave (from tensorflow.python.data.experimental.ops.interleave_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.data.Dataset.interleave(map_func, cycle_length, block_length, num_parallel_calls=tf.data.experimental.AUTOTUNE) instead. If sloppy execution is desired, use tf.data.Options.experimental_determinstic.
WARNING:tensorflow:Entity <function InputReader.call.export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: LIVE_VARS_IN
W0409 16:13:21.078935 140101117593344 ag_logging.py:146] Entity <function InputReader.call.export AUTOGRAPH_VERBOSITY=10) and attach the full output. Cause: LIVE_VARS_IN
2020-04-09 16:13:21.113658: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2020-04-09 16:13:21.138768: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1006] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-04-09 16:13:21.139469: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties:
name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.7085
pciBusID: 0000:01:00.0
2020-04-09 16:13:21.140091: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0
2020-04-09 16:13:21.142139: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10.0
2020-04-09 16:13:21.143307: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10.0
2020-04-09 16:13:21.144492: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10.0
2020-04-09 16:13:21.146584: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10.0
2020-04-09 16:13:21.147977: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10.0
2020-04-09 16:13:21.150129: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2020-04-09 16:13:21.150203: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1006] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-04-09 16:13:21.150919: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1006] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-04-09 16:13:21.151550: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1746] Adding visible gpu devices: 0
WARNING:tensorflow:From /home/user/github/test/automl/efficientdet/dataloader.py:100 to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
W0409 16:13:21.236353 140101117593344 deprecation.py:323] From /home/user/github/test/automl/efficientdet/dataloader.py:100 to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
WARNING:tensorflow:From /home/user/github/test/automl/efficientdet/dataloader.py:102: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
W0409 16:13:21.238148 140101117593344 deprecation.py:323] From /home/user/github/test/automl/efficientdet/dataloader.py:102: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
INFO:tensorflow:Calling model_fn.
I0409 16:13:21.539695 140101117593344 estimator.py:1147] Calling model_fn.
INFO:tensorflow:Running eval on CPU
I0409 16:13:21.539828 140101117593344 tpu_estimator.py:3124] Running eval on CPU
I0409 16:13:21.540117 140101117593344 efficientdet_arch.py:548] {
"name": "efficientdet-d0",
"image_size": 512,
"input_rand_hflip": false,
"train_scale_min": 0.1,
"train_scale_max": 2.0,
"autoaugment_policy": null,
"num_classes": 90,
"skip_crowd_during_training": true,
"min_level": 3,
"max_level": 7,
"num_scales": 3,
"aspect_ratios": [
[
1.0,
1.0
],
[
1.4,
0.7
],
[
0.7,
1.4
]
],
"anchor_scale": 4.0,
"is_training_bn": false,
"momentum": 0.9,
"learning_rate": 0.08,
"lr_warmup_init": 0.008,
"lr_warmup_epoch": 1.0,
"first_lr_drop_epoch": 200.0,
"second_lr_drop_epoch": 250.0,
"clip_gradients_norm": 10.0,
"num_epochs": 15,
"alpha": 0.25,
"gamma": 1.5,
"delta": 0.1,
"box_loss_weight": 50.0,
"weight_decay": 4e-05,
"use_bfloat16": false,
"box_class_repeats": 3,
"fpn_cell_repeats": 3,
"fpn_num_filters": 64,
"separable_conv": true,
"apply_bn_for_resampling": true,
"conv_after_downsample": false,
"conv_bn_relu_pattern": false,
"use_native_resize_op": false,
"pooling_type": null,
"fpn_name": null,
"fpn_config": null,
"survival_prob": null,
"lr_decay_method": "cosine",
"moving_average_decay": 0.9998,
"ckpt_var_scope": null,
"backbone_name": "efficientnet-b0",
"backbone_config": null,
"resnet_depth": 50,
"model_name": "efficientdet-d0",
"iterations_per_loop": 100,
"model_dir": "efficientdet-d0",
"num_shards": 8,
"num_examples_per_epoch": 120000,
"use_tpu": false,
"backbone_ckpt": "",
"ckpt": null,
"val_json_file": "annotations/instances_val2017.json",
"testdev_dir": null,
"mode": "eval",
"batch_size": 1
}
I0409 16:13:21.540459 140101117593344 efficientnet_builder.py:220] global_params= GlobalParams(batch_norm_momentum=0.99, batch_norm_epsilon=0.001, dropout_rate=0.2, data_format='channels_last', num_classes=1000, width_coefficient=1.0, depth_coefficient=1.0, depth_divisor=8, min_depth=None, survival_prob=0.0, relu_fn=<function tf.compat.v1.graph_util.tensor_shape_from_node_def_name
W0409 16:13:27.468812 140101117593344 deprecation.py:323] From /home/user/anaconda2/envs/maskrcnn_onnx/lib/python3.7/site-packages/tensorflow_core/python/profiler/internal/flops_registry.py:142: tensor_shape_from_node_def_name (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.compat.v1.graph_util.tensor_shape_from_node_def_name
Parsing Inputs...
I0409 16:13:27.703222 140101117593344 efficientdet_arch.py:553] backbone params/flops = 3.595388M, 3.867125178B
WARNING:tensorflow:From /home/user/github/test/automl/efficientdet/efficientdet_arch.py:94: conv2d (from tensorflow.python.layers.convolutional) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.keras.layers.Conv2D instead.
W0409 16:13:27.703623 140101117593344 deprecation.py:323] From /home/user/github/test/automl/efficientdet/efficientdet_arch.py:94: conv2d (from tensorflow.python.layers.convolutional) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.keras.layers.Conv2D instead.
WARNING:tensorflow:From /home/user/anaconda2/envs/maskrcnn_onnx/lib/python3.7/site-packages/tensorflow_core/python/layers/convolutional.py:424: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.
Instructions for updating:
Please use layer.__call__ method instead.
W0409 16:13:27.703963 140101117593344 deprecation.py:323] From /home/user/anaconda2/envs/maskrcnn_onnx/lib/python3.7/site-packages/tensorflow_core/python/layers/convolutional.py:424: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.
Instructions for updating:
Please use layer.__call__ method instead.
WARNING:tensorflow:From /home/user/github/test/automl/efficientdet/efficientdet_arch.py:121: max_pooling2d (from tensorflow.python.layers.pooling) is deprecated and will be removed in a future version.
Instructions for updating:
Use keras.layers.MaxPooling2D instead.
W0409 16:13:27.726235 140101117593344 deprecation.py:323] From /home/user/github/test/automl/efficientdet/efficientdet_arch.py:121: max_pooling2d (from tensorflow.python.layers.pooling) is deprecated and will be removed in a future version.
Instructions for updating:
Use keras.layers.MaxPooling2D instead.
I0409 16:13:27.728794 140101117593344 efficientdet_arch.py:382] building cell 0
I0409 16:13:27.728981 140101117593344 efficientdet_arch.py:462] fnode 0 : {'width_ratio': 0.015625, 'inputs_offsets': [3, 4]}
WARNING:tensorflow:From /home/user/github/test/automl/efficientdet/efficientdet_arch.py:516: separable_conv2d (from tensorflow.python.layers.convolutional) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.keras.layers.SeparableConv2D instead.
W0409 16:13:27.741117 140101117593344 deprecation.py:323] From /home/user/github/test/automl/efficientdet/efficientdet_arch.py:516: separable_conv2d (from tensorflow.python.layers.convolutional) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.keras.layers.SeparableConv2D instead.
I0409 16:13:27.768032 140101117593344 efficientdet_arch.py:462] fnode 1 : {'width_ratio': 0.03125, 'inputs_offsets': [2, 5]}
I0409 16:13:27.828406 140101117593344 efficientdet_arch.py:462] fnode 2 : {'width_ratio': 0.0625, 'inputs_offsets': [1, 6]}
I0409 16:13:27.888061 140101117593344 efficientdet_arch.py:462] fnode 3 : {'width_ratio': 0.125, 'inputs_offsets': [0, 7]}
I0409 16:13:27.948108 140101117593344 efficientdet_arch.py:462] fnode 4 : {'width_ratio': 0.0625, 'inputs_offsets': [1, 7, 8]}
I0409 16:13:28.065726 140101117593344 efficientdet_arch.py:462] fnode 5 : {'width_ratio': 0.03125, 'inputs_offsets': [2, 6, 9]}
I0409 16:13:28.127323 140101117593344 efficientdet_arch.py:462] fnode 6 : {'width_ratio': 0.015625, 'inputs_offsets': [3, 5, 10]}
I0409 16:13:28.169093 140101117593344 efficientdet_arch.py:462] fnode 7 : {'width_ratio': 0.0078125, 'inputs_offsets': [4, 11]}
I0409 16:13:28.206433 140101117593344 efficientdet_arch.py:382] building cell 1
I0409 16:13:28.206652 140101117593344 efficientdet_arch.py:462] fnode 0 : {'width_ratio': 0.015625, 'inputs_offsets': [3, 4]}
I0409 16:13:28.244139 140101117593344 efficientdet_arch.py:462] fnode 1 : {'width_ratio': 0.03125, 'inputs_offsets': [2, 5]}
I0409 16:13:28.282330 140101117593344 efficientdet_arch.py:462] fnode 2 : {'width_ratio': 0.0625, 'inputs_offsets': [1, 6]}
I0409 16:13:28.319879 140101117593344 efficientdet_arch.py:462] fnode 3 : {'width_ratio': 0.125, 'inputs_offsets': [0, 7]}
I0409 16:13:28.358744 140101117593344 efficientdet_arch.py:462] fnode 4 : {'width_ratio': 0.0625, 'inputs_offsets': [1, 7, 8]}
I0409 16:13:28.400446 140101117593344 efficientdet_arch.py:462] fnode 5 : {'width_ratio': 0.03125, 'inputs_offsets': [2, 6, 9]}
I0409 16:13:28.441406 140101117593344 efficientdet_arch.py:462] fnode 6 : {'width_ratio': 0.015625, 'inputs_offsets': [3, 5, 10]}
I0409 16:13:28.480426 140101117593344 efficientdet_arch.py:462] fnode 7 : {'width_ratio': 0.0078125, 'inputs_offsets': [4, 11]}
I0409 16:13:28.516557 140101117593344 efficientdet_arch.py:382] building cell 2
I0409 16:13:28.516816 140101117593344 efficientdet_arch.py:462] fnode 0 : {'width_ratio': 0.015625, 'inputs_offsets': [3, 4]}
I0409 16:13:28.554947 140101117593344 efficientdet_arch.py:462] fnode 1 : {'width_ratio': 0.03125, 'inputs_offsets': [2, 5]}
I0409 16:13:28.595057 140101117593344 efficientdet_arch.py:462] fnode 2 : {'width_ratio': 0.0625, 'inputs_offsets': [1, 6]}
I0409 16:13:28.631324 140101117593344 efficientdet_arch.py:462] fnode 3 : {'width_ratio': 0.125, 'inputs_offsets': [0, 7]}
I0409 16:13:28.667851 140101117593344 efficientdet_arch.py:462] fnode 4 : {'width_ratio': 0.0625, 'inputs_offsets': [1, 7, 8]}
I0409 16:13:28.707045 140101117593344 efficientdet_arch.py:462] fnode 5 : {'width_ratio': 0.03125, 'inputs_offsets': [2, 6, 9]}
I0409 16:13:28.747735 140101117593344 efficientdet_arch.py:462] fnode 6 : {'width_ratio': 0.015625, 'inputs_offsets': [3, 5, 10]}
I0409 16:13:28.789936 140101117593344 efficientdet_arch.py:462] fnode 7 : {'width_ratio': 0.0078125, 'inputs_offsets': [4, 11]}
Parsing Inputs...
I0409 16:13:29.194945 140101117593344 efficientdet_arch.py:558] backbone+fpn params/flops = 3.791669M, 4.153709073B
Parsing Inputs...
I0409 16:13:30.259850 140101117593344 efficientdet_arch.py:563] backbone+fpn+box params/flops = 3.880067M, 5.071956849B
I0409 16:13:30.260022 140101117593344 det_model_fn.py:95] LR schedule method: cosine
WARNING:tensorflow:From /home/user/github/test/automl/efficientdet/det_model_fn.py:316: div (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Deprecated in favor of operator or tf.math.divide.
W0409 16:13:30.470722 140101117593344 deprecation.py:323] From /home/user/github/test/automl/efficientdet/det_model_fn.py:316: div (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Deprecated in favor of operator or tf.math.divide.
I0409 16:13:30.474893 140101117593344 utils.py:286] get summaries []
I0409 16:13:30.494375 140101117593344 det_model_fn.py:513] Eval val with groudtruths annotations/instances_val2017.json.
WARNING:tensorflow:From /home/user/github/test/automl/efficientdet/anchors.py:556: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version.
Instructions for updating:
tf.py_func is deprecated in TF V2. Instead, there are two
options available in V2.
- tf.py_function takes a python function which manipulates tf eager
tensors instead of numpy arrays. It's easy to convert a tf eager tensor to
an ndarray (just call tensor.numpy()) but having access to eager tensors
means tf.py_functions can use accelerators such as GPUs as well as
being differentiable using a gradient tape.
- tf.numpy_function maintains the semantics of the deprecated tf.py_func
(it is not differentiable, and manipulates numpy arrays). It drops the
stateful argument making all functions stateful.
W0409 16:13:30.501376 140101117593344 deprecation.py:323] From /home/user/github/test/automl/efficientdet/anchors.py:556: py_func (from tensorflow.python.ops.script_ops) is deprecated and will be removed in a future version.
Instructions for updating:
tf.py_func is deprecated in TF V2. Instead, there are two
options available in V2.
- tf.py_function takes a python function which manipulates tf eager
tensors instead of numpy arrays. It's easy to convert a tf eager tensor to
an ndarray (just call tensor.numpy()) but having access to eager tensors
means tf.py_functions can use accelerators such as GPUs as well as
being differentiable using a gradient tape.
- tf.numpy_function maintains the semantics of the deprecated tf.py_func
(it is not differentiable, and manipulates numpy arrays). It drops the
stateful argument making all functions stateful.
loading annotations into memory... Done (t=0.39s) creating index... index created! I0409 16:13:30.939795 140101117593344 det_model_fn.py:571] Load EMA vars with ema_decay=0.999800 INFO:tensorflow:Done calling model_fn. I0409 16:13:31.322638 140101117593344 estimator.py:1149] Done calling model_fn. INFO:tensorflow:Starting evaluation at 2020-04-09T16:13:31Z I0409 16:13:31.332953 140101117593344 evaluation.py:255] Starting evaluation at 2020-04-09T16:13:31Z INFO:tensorflow:Graph was finalized. I0409 16:13:31.936268 140101117593344 monitored_session.py:240] Graph was finalized. 2020-04-09 16:13:31.936459: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2020-04-09 16:13:31.961462: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3192000000 Hz 2020-04-09 16:13:31.961963: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55b85b9b6950 executing computations on platform Host. Devices: 2020-04-09 16:13:31.961977: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): Host, Default Version 2020-04-09 16:13:32.029241: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1006] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2020-04-09 16:13:32.029673: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55b85b9e9d00 executing computations on platform CUDA. Devices: 2020-04-09 16:13:32.029689: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): GeForce GTX 1080 Ti, Compute Capability 6.1 2020-04-09 16:13:32.029854: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1006] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2020-04-09 16:13:32.030273: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties: name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.7085 pciBusID: 0000:01:00.0 2020-04-09 16:13:32.030314: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0 2020-04-09 16:13:32.030323: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10.0 2020-04-09 16:13:32.030345: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10.0 2020-04-09 16:13:32.030367: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10.0 2020-04-09 16:13:32.030375: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10.0 2020-04-09 16:13:32.030383: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10.0 2020-04-09 16:13:32.030391: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2020-04-09 16:13:32.030450: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1006] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2020-04-09 16:13:32.030831: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1006] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2020-04-09 16:13:32.031175: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1746] Adding visible gpu devices: 0 2020-04-09 16:13:32.031212: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.0 2020-04-09 16:13:32.031850: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1159] Device interconnect StreamExecutor with strength 1 edge matrix: 2020-04-09 16:13:32.031860: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1165] 0 2020-04-09 16:13:32.031880: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1178] 0: N 2020-04-09 16:13:32.032053: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1006] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2020-04-09 16:13:32.032426: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1006] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2020-04-09 16:13:32.032790: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1304] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10470 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:01:00.0, compute capability: 6.1) INFO:tensorflow:Restoring parameters from efficientdet-d0/model I0409 16:13:32.034317 140101117593344 saver.py:1284] Restoring parameters from efficientdet-d0/model INFO:tensorflow:Running local_init_op. I0409 16:13:33.732365 140101117593344 session_manager.py:500] Running local_init_op. INFO:tensorflow:Done running local_init_op. I0409 16:13:33.849044 140101117593344 session_manager.py:502] Done running local_init_op. 2020-04-09 16:13:36.777565: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 INFO:tensorflow:Evaluation [500/5000] I0409 16:14:16.979651 140101117593344 evaluation.py:167] Evaluation [500/5000] INFO:tensorflow:Evaluation [1000/5000] I0409 16:14:57.227450 140101117593344 evaluation.py:167] Evaluation [1000/5000] INFO:tensorflow:Evaluation [1500/5000] I0409 16:15:37.796488 140101117593344 evaluation.py:167] Evaluation [1500/5000] INFO:tensorflow:Evaluation [2000/5000] I0409 16:16:18.061567 140101117593344 evaluation.py:167] Evaluation [2000/5000] INFO:tensorflow:Evaluation [2500/5000] I0409 16:16:57.728442 140101117593344 evaluation.py:167] Evaluation [2500/5000] INFO:tensorflow:Evaluation [3000/5000] I0409 16:17:38.442954 140101117593344 evaluation.py:167] Evaluation [3000/5000] INFO:tensorflow:Evaluation [3500/5000] I0409 16:18:18.724567 140101117593344 evaluation.py:167] Evaluation [3500/5000] INFO:tensorflow:Evaluation [4000/5000] I0409 16:18:58.567865 140101117593344 evaluation.py:167] Evaluation [4000/5000] INFO:tensorflow:Evaluation [4500/5000] I0409 16:19:38.401137 140101117593344 evaluation.py:167] Evaluation [4500/5000] INFO:tensorflow:Evaluation [5000/5000] I0409 16:20:18.568372 140101117593344 evaluation.py:167] Evaluation [5000/5000] Loading and preparing results... Converting ndarray to lists... (500000, 7) 0/500000 DONE (t=2.22s) creating index... index created! Running per image evaluation... Evaluate annotation type bbox DONE (t=50.02s). Accumulating evaluation results... DONE (t=0.35s). Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.268 Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.467 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=100 ] = 0.265 Average Precision (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.111 Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.507 Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.628 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 1 ] = 0.140 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 10 ] = 0.335 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.374 Average Recall (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.204 Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.623 Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.757 INFO:tensorflow:Finished evaluation at 2020-04-09-16:21:12 I0409 16:21:12.858441 140101117593344 evaluation.py:275] Finished evaluation at 2020-04-09-16:21:12 INFO:tensorflow:Saving dict for global step 0: AP = 0.26801127, AP50 = 0.46732688, AP75 = 0.26522616, APl = 0.6278392, APm = 0.5068724, APs = 0.11107491, ARl = 0.7567416, ARm = 0.6234004, ARmax1 = 0.13972889, ARmax10 = 0.3352972, ARmax100 = 0.37434828, ARs = 0.20385583, box_loss = 0.0, cls_loss = 30.711382, global_step = 0, loss = 30.806597 I0409 16:21:12.858613 140101117593344 estimator.py:2049] Saving dict for global step 0: AP = 0.26801127, AP50 = 0.46732688, AP75 = 0.26522616, APl = 0.6278392, APm = 0.5068724, APs = 0.11107491, ARl = 0.7567416, ARm = 0.6234004, ARmax1 = 0.13972889, ARmax10 = 0.3352972, ARmax100 = 0.37434828, ARs = 0.20385583, box_loss = 0.0, cls_loss = 30.711382, global_step = 0, loss = 30.806597 INFO:tensorflow:Saving 'checkpoint_path' summary for global step 0: efficientdet-d0/model I0409 16:21:13.404942 140101117593344 estimator.py:2109] Saving 'checkpoint_path' summary for global step 0: efficientdet-d0/model INFO:tensorflow:evaluation_loop marked as finished I0409 16:21:13.405459 140101117593344 error_handling.py:101] evaluation_loop marked as finished I0409 16:21:13.405549 140101117593344 main.py:320] Eval results: {'AP': 0.26801127, 'AP50': 0.46732688, 'AP75': 0.26522616, 'APl': 0.6278392, 'APm': 0.5068724, 'APs': 0.11107491, 'ARl': 0.7567416, 'ARm': 0.6234004, 'ARmax1': 0.13972889, 'ARmax10': 0.3352972, 'ARmax100': 0.37434828, 'ARs': 0.20385583, 'box_loss': 0.0, 'cls_loss': 30.711382, 'loss': 30.806597, 'global_step': 0} I0409 16:21:13.405642 140101117593344 main.py:326] efficientdet-d0/model has no global step info: stop! `
Hmm, it is strange. Maybe you should start from a clean environment, check out the latest code, and run the same command lines as shown in the tutorial?
Since I can reproduce the results in tutorial.py multiply times, I am going to close this issue for now. Feel free to reopen it if you still have issues. Thanks!
@sjtuzbk
Below is my evalution log runs on TF 2.1 and 1080ti. The result is exactly the same as mingxingtan pasted.
coco_evaluation.log
请问您解决了吗?我也遇到相同的问题: efficientdet-d0/model has no global step info: stop!