Thanks for your tutorials - super helpful. I'm getting an error message when running this code:
(tfnew) C:\Users\rob26\Desktop\Model\models\research\object_detection>python model_main.py --logtostderr --model_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\dtypes.py:527: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\dtypes.py:528: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\dtypes.py:529: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\dtypes.py:530: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\dtypes.py:535: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
* https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
* https://github.com/tensorflow/addons
If you depend on functionality not listed there, please file an issue.
WARNING:tensorflow:Forced number of epochs for all eval validations to be 1.
WARNING:tensorflow:Expected number of evaluation epochs is 1, but instead encountered `eval_on_train_input_config.num_epochs` = 0. Overwriting `num_epochs` to 1.
WARNING:tensorflow:Estimator's model_fn (<function create_model_fn.<locals>.model_fn at 0x0000018B2670D288>) includes params argument, but params are not passed to Estimator.
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:num_readers has been reduced to 1 to match input file shards.
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\builders\dataset_builder.py:80: parallel_interleave (from tensorflow.contrib.data.python.ops.interleave_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.experimental.parallel_interleave(...)`.
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\anchor_generators\grid_anchor_generator.py:59: 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 C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\utils\ops.py:466: 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.
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\builders\dataset_builder.py:148: batch_and_drop_remainder (from tensorflow.contrib.data.python.ops.batching) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.data.Dataset.batch(..., drop_remainder=True)`.
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\contrib\layers\python\layers\layers.py:1624: flatten (from tensorflow.python.layers.core) is deprecated and will be removed in a future version.
Instructions for updating:
Use keras.layers.flatten instead.
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\meta_architectures\faster_rcnn_meta_arch.py:2236: get_or_create_global_step (from tensorflow.contrib.framework.python.ops.variables) is deprecated and will be removed in a future version.
Instructions for updating:
Please switch to tf.train.get_or_create_global_step
WARNING:root:Variable [SecondStageBoxPredictor/BoxEncodingPredictor/biases] is available in checkpoint, but has an incompatible shape with model variable. Checkpoint shape: [[360]], model variable shape: [[8]]. This variable will not be initialized from the checkpoint.
WARNING:root:Variable [SecondStageBoxPredictor/BoxEncodingPredictor/weights] is available in checkpoint, but has an incompatible shape with model variable. Checkpoint shape: [[1024, 360]], model variable shape: [[1024, 8]]. This variable will not be initialized from the checkpoint.
WARNING:root:Variable [SecondStageBoxPredictor/ClassPredictor/biases] is available in checkpoint, but has an incompatible shape with model variable. Checkpoint shape: [[91]], model variable shape: [[3]]. This variable will not be initialized from the checkpoint.
WARNING:root:Variable [SecondStageBoxPredictor/ClassPredictor/weights] is available in checkpoint, but has an incompatible shape with model variable. Checkpoint shape: [[1024, 91]], model variable shape: [[1024, 3]]. This variable will not be initialized from the checkpoint.
WARNING:root:Variable [global_step] is not available in checkpoint
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\core\losses.py:345: softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Future major versions of TensorFlow will allow gradients to flow
into the labels input on backprop by default.
See `tf.nn.softmax_cross_entropy_with_logits_v2`.
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\core\losses.py:345: softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Future major versions of TensorFlow will allow gradients to flow
into the labels input on backprop by default.
See `tf.nn.softmax_cross_entropy_with_logits_v2`.
C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\ops\gradients_impl.py:110: UserWarning: Converting sparse IndexedSlices to a dense Tensor of unknown shape. This may consume a large amount of memory.
"Converting sparse IndexedSlices to a dense Tensor of unknown shape. "
2020-03-07 22:31:42.067316: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
2020-03-07 22:31:42.191682: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1433] Found device 0 with properties:
name: GeForce GTX 1660 major: 7 minor: 5 memoryClockRate(GHz): 1.83
pciBusID: 0000:01:00.0
totalMemory: 6.00GiB freeMemory: 4.92GiB
2020-03-07 22:31:42.204120: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1512] Adding visible gpu devices: 0
2020-03-07 22:31:42.667391: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-03-07 22:31:42.672707: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0
2020-03-07 22:31:42.677787: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 0: N
2020-03-07 22:31:42.681668: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4638 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1660, pci bus id: 0000:01:00.0, compute capability: 7.5)
2020-03-07 22:32:14.023267: W .\tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node Preprocessor/ResizeToRange/strided_slice_3. Error: Pack node (Preprocessor/ResizeToRange/stack_2) axis attribute is out of bounds: 0
2020-03-07 22:32:14.206882: W .\tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node Preprocessor/ResizeToRange/strided_slice_3. Error: Pack node (Preprocessor/ResizeToRange/stack_2) axis attribute is out of bounds: 0
2020-03-07 22:32:14.237861: W .\tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node Preprocessor/ResizeToRange/strided_slice_3. Error: Pack node (Preprocessor/ResizeToRange/stack_2) axis attribute is out of bounds: 0
2020-03-07 22:32:16.611378: I tensorflow/stream_executor/dso_loader.cc:152] successfully opened CUDA library cublas64_90.dll locally
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\eval_util.py:750: to_int64 (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 C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\eval_util.py:750: to_int64 (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 C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\utils\visualization_utils.py:429: 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, use
tf.py_function, which 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_function`s can use accelerators such as GPUs as well as
being differentiable using a gradient tape.
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\utils\visualization_utils.py:429: 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, use
tf.py_function, which 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_function`s can use accelerators such as GPUs as well as
being differentiable using a gradient tape.
2020-03-07 22:42:28.100597: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1512] Adding visible gpu devices: 0
2020-03-07 22:42:28.104771: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-03-07 22:42:28.109302: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0
2020-03-07 22:42:28.112116: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 0: N
2020-03-07 22:42:28.115093: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4638 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1660, pci bus id: 0000:01:00.0, compute capability: 7.5)
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\saver.py:1266: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
WARNING:tensorflow:From C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\saver.py:1266: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
2020-03-07 22:42:29.500837: W .\tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node Preprocessor/ResizeToRange/strided_slice_3. Error: Pack node (Preprocessor/ResizeToRange/stack_2) axis attribute is out of bounds: 0
2020-03-07 22:42:29.513261: W .\tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node ResizeToRange/strided_slice_3. Error: Pack node (ResizeToRange/stack_2) axis attribute is out of bounds: 0
2020-03-07 22:42:29.646998: W .\tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node Preprocessor/ResizeToRange/strided_slice_3. Error: Pack node (Preprocessor/ResizeToRange/stack_2) axis attribute is out of bounds: 0
2020-03-07 22:42:29.660283: W .\tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node ResizeToRange/strided_slice_3. Error: Pack node (ResizeToRange/stack_2) axis attribute is out of bounds: 0
2020-03-07 22:42:29.691745: W .\tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node Preprocessor/ResizeToRange/strided_slice_3. Error: Pack node (Preprocessor/ResizeToRange/stack_2) axis attribute is out of bounds: 0
2020-03-07 22:42:29.704384: W .\tensorflow/core/grappler/optimizers/graph_optimizer_stage.h:241] Failed to run optimizer ArithmeticOptimizer, stage RemoveStackStridedSliceSameAxis node ResizeToRange/strided_slice_3. Error: Pack node (ResizeToRange/stack_2) axis attribute is out of bounds: 0
creating index...
index created!
creating index...
index created!
2020-03-07 22:42:32.211629: W tensorflow/core/framework/op_kernel.cc:1389] Invalid argument: TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
Traceback (most recent call last):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\numpy\core\function_base.py", line 117, in linspace
num = operator.index(num)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\ops\script_ops.py", line 207, in __call__
ret = func(*args)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_evaluation.py", line 358, in first_value_func
self._metrics = self.evaluate()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_evaluation.py", line 209, in evaluate
coco_wrapped_groundtruth, coco_wrapped_detections, agnostic_mode=False)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_tools.py", line 170, in __init__
iouType=iou_type)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 76, in __init__
self.params = Params(iouType=iouType) # parameters
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 527, in __init__
self.setDetParams()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 507, in setDetParams
self.iouThrs = np.linspace(.5, 0.95, np.round((0.95 - .5) / .05) + 1, endpoint=True)
File "<__array_function__ internals>", line 6, in linspace
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\numpy\core\function_base.py", line 121, in linspace
.format(type(num)))
TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
Traceback (most recent call last):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1334, in _do_call
return fn(*args)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1319, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1407, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.OutOfRangeError: End of sequence
[[{{node IteratorGetNext}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\evaluation.py", line 274, in _evaluate_once
session.run(eval_ops, feed_dict)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 676, in run
run_metadata=run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1171, in run
run_metadata=run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1270, in run
raise six.reraise(*original_exc_info)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\six.py", line 703, in reraise
raise value
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1255, in run
return self._sess.run(*args, **kwargs)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1327, in run
run_metadata=run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1091, in run
return self._sess.run(*args, **kwargs)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 929, in run
run_metadata_ptr)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1152, in _run
feed_dict_tensor, options, run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1328, in _do_run
run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1348, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.OutOfRangeError: End of sequence
[[node IteratorGetNext (defined at C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\util.py:110) ]]
Caused by op 'IteratorGetNext', defined at:
File "model_main.py", line 109, in <module>
tf.app.run()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "model_main.py", line 105, in main
tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs[0])
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 471, in train_and_evaluate
return executor.run()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 611, in run
return self.run_local()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 712, in run_local
saving_listeners=saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 358, in train
loss = self._train_model(input_fn, hooks, saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1124, in _train_model
return self._train_model_default(input_fn, hooks, saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1158, in _train_model_default
saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1407, in _train_with_estimator_spec
_, loss = mon_sess.run([estimator_spec.train_op, estimator_spec.loss])
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 676, in run
run_metadata=run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1171, in run
run_metadata=run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1255, in run
return self._sess.run(*args, **kwargs)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1335, in run
run_metadata=run_metadata))
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\basic_session_run_hooks.py", line 582, in after_run
if self._save(run_context.session, global_step):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\basic_session_run_hooks.py", line 607, in _save
if l.after_save(session, step):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 517, in after_save
self._evaluate(global_step_value) # updates self.eval_result
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 537, in _evaluate
self._evaluator.evaluate_and_export())
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 913, in evaluate_and_export
hooks=self._eval_spec.hooks)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 469, in evaluate
name=name)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 511, in _actual_eval
return _evaluate()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 493, in _evaluate
self._evaluate_build_graph(input_fn, hooks, checkpoint_path))
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1424, in _evaluate_build_graph
self._call_model_fn_eval(input_fn, self.config))
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1457, in _call_model_fn_eval
input_fn, model_fn_lib.ModeKeys.EVAL)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 992, in _get_features_and_labels_from_input_fn
self._call_input_fn(input_fn, mode))
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\util.py", line 110, in parse_input_fn_result
result = iterator.get_next()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\data\ops\iterator_ops.py", line 414, in get_next
output_shapes=self._structure._flat_shapes, name=name)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\ops\gen_dataset_ops.py", line 1685, in iterator_get_next
output_shapes=output_shapes, name=name)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper
op_def=op_def)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\ops.py", line 3300, in create_op
op_def=op_def)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\ops.py", line 1801, in __init__
self._traceback = tf_stack.extract_stack()
OutOfRangeError (see above for traceback): End of sequence
[[node IteratorGetNext (defined at C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\util.py:110) ]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1334, in _do_call
return fn(*args)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1319, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1407, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
Traceback (most recent call last):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\numpy\core\function_base.py", line 117, in linspace
num = operator.index(num)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\ops\script_ops.py", line 207, in __call__
ret = func(*args)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_evaluation.py", line 358, in first_value_func
self._metrics = self.evaluate()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_evaluation.py", line 209, in evaluate
coco_wrapped_groundtruth, coco_wrapped_detections, agnostic_mode=False)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_tools.py", line 170, in __init__
iouType=iou_type)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 76, in __init__
self.params = Params(iouType=iouType) # parameters
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 527, in __init__
self.setDetParams()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 507, in setDetParams
self.iouThrs = np.linspace(.5, 0.95, np.round((0.95 - .5) / .05) + 1, endpoint=True)
File "<__array_function__ internals>", line 6, in linspace
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\numpy\core\function_base.py", line 121, in linspace
.format(type(num)))
TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
[[{{node PyFunc_3}}]]
[[{{node cond_1/Detections_Left_Groundtruth_Right/1}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "model_main.py", line 109, in <module>
tf.app.run()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "model_main.py", line 105, in main
tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs[0])
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 471, in train_and_evaluate
return executor.run()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 611, in run
return self.run_local()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 712, in run_local
saving_listeners=saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 358, in train
loss = self._train_model(input_fn, hooks, saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1124, in _train_model
return self._train_model_default(input_fn, hooks, saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1158, in _train_model_default
saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1407, in _train_with_estimator_spec
_, loss = mon_sess.run([estimator_spec.train_op, estimator_spec.loss])
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 676, in run
run_metadata=run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1171, in run
run_metadata=run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1270, in run
raise six.reraise(*original_exc_info)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\six.py", line 703, in reraise
raise value
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1255, in run
return self._sess.run(*args, **kwargs)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1335, in run
run_metadata=run_metadata))
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\basic_session_run_hooks.py", line 582, in after_run
if self._save(run_context.session, global_step):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\basic_session_run_hooks.py", line 607, in _save
if l.after_save(session, step):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 517, in after_save
self._evaluate(global_step_value) # updates self.eval_result
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 537, in _evaluate
self._evaluator.evaluate_and_export())
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 913, in evaluate_and_export
hooks=self._eval_spec.hooks)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 469, in evaluate
name=name)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 511, in _actual_eval
return _evaluate()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 500, in _evaluate
output_dir=self.eval_dir(name))
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1537, in _evaluate_run
config=self._session_config)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\evaluation.py", line 274, in _evaluate_once
session.run(eval_ops, feed_dict)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 788, in __exit__
self._close_internal(exception_type)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 821, in _close_internal
h.end(self._coordinated_creator.tf_sess)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\basic_session_run_hooks.py", line 942, in end
self._final_ops, feed_dict=self._final_ops_feed_dict)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 929, in run
run_metadata_ptr)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1152, in _run
feed_dict_tensor, options, run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1328, in _do_run
run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\client\session.py", line 1348, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
Traceback (most recent call last):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\numpy\core\function_base.py", line 117, in linspace
num = operator.index(num)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\ops\script_ops.py", line 207, in __call__
ret = func(*args)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_evaluation.py", line 358, in first_value_func
self._metrics = self.evaluate()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_evaluation.py", line 209, in evaluate
coco_wrapped_groundtruth, coco_wrapped_detections, agnostic_mode=False)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_tools.py", line 170, in __init__
iouType=iou_type)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 76, in __init__
self.params = Params(iouType=iouType) # parameters
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 527, in __init__
self.setDetParams()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 507, in setDetParams
self.iouThrs = np.linspace(.5, 0.95, np.round((0.95 - .5) / .05) + 1, endpoint=True)
File "<__array_function__ internals>", line 6, in linspace
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\numpy\core\function_base.py", line 121, in linspace
.format(type(num)))
TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
[[node PyFunc_3 (defined at C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_evaluation.py:368) ]]
[[node cond_1/Detections_Left_Groundtruth_Right/1 (defined at C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\utils\visualization_utils.py:924) ]]
Caused by op 'PyFunc_3', defined at:
File "model_main.py", line 109, in <module>
tf.app.run()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "model_main.py", line 105, in main
tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs[0])
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 471, in train_and_evaluate
return executor.run()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 611, in run
return self.run_local()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 712, in run_local
saving_listeners=saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 358, in train
loss = self._train_model(input_fn, hooks, saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1124, in _train_model
return self._train_model_default(input_fn, hooks, saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1158, in _train_model_default
saving_listeners)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1407, in _train_with_estimator_spec
_, loss = mon_sess.run([estimator_spec.train_op, estimator_spec.loss])
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 676, in run
run_metadata=run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1171, in run
run_metadata=run_metadata)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1255, in run
return self._sess.run(*args, **kwargs)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\monitored_session.py", line 1335, in run
run_metadata=run_metadata))
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\basic_session_run_hooks.py", line 582, in after_run
if self._save(run_context.session, global_step):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\training\basic_session_run_hooks.py", line 607, in _save
if l.after_save(session, step):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 517, in after_save
self._evaluate(global_step_value) # updates self.eval_result
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 537, in _evaluate
self._evaluator.evaluate_and_export())
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\training.py", line 913, in evaluate_and_export
hooks=self._eval_spec.hooks)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 469, in evaluate
name=name)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 511, in _actual_eval
return _evaluate()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 493, in _evaluate
self._evaluate_build_graph(input_fn, hooks, checkpoint_path))
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1424, in _evaluate_build_graph
self._call_model_fn_eval(input_fn, self.config))
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1460, in _call_model_fn_eval
features, labels, model_fn_lib.ModeKeys.EVAL, config)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 1112, in _call_model_fn
model_fn_results = self._model_fn(features=features, **kwargs)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\model_lib.py", line 439, in model_fn
eval_config, list(category_index.values()), eval_dict)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\eval_util.py", line 881, in get_eval_metric_ops_for_evaluators
eval_dict))
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_evaluation.py", line 368, in get_estimator_eval_metric_ops
first_value_op = tf.py_func(first_value_func, [], tf.float32)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\util\deprecation.py", line 324, in new_func
return func(*args, **kwargs)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\ops\script_ops.py", line 468, in py_func
func=func, inp=inp, Tout=Tout, stateful=stateful, eager=False, name=name)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\ops\script_ops.py", line 282, in _internal_py_func
input=inp, token=token, Tout=Tout, name=name)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\ops\gen_script_ops.py", line 151, in py_func
"PyFunc", input=input, token=token, Tout=Tout, name=name)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper
op_def=op_def)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\ops.py", line 3300, in create_op
op_def=op_def)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\framework\ops.py", line 1801, in __init__
self._traceback = tf_stack.extract_stack()
InvalidArgumentError (see above for traceback): TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
Traceback (most recent call last):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\numpy\core\function_base.py", line 117, in linspace
num = operator.index(num)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\tensorflow\python\ops\script_ops.py", line 207, in __call__
ret = func(*args)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_evaluation.py", line 358, in first_value_func
self._metrics = self.evaluate()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_evaluation.py", line 209, in evaluate
coco_wrapped_groundtruth, coco_wrapped_detections, agnostic_mode=False)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_tools.py", line 170, in __init__
iouType=iou_type)
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 76, in __init__
self.params = Params(iouType=iouType) # parameters
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 527, in __init__
self.setDetParams()
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\pycocotools\cocoeval.py", line 507, in setDetParams
self.iouThrs = np.linspace(.5, 0.95, np.round((0.95 - .5) / .05) + 1, endpoint=True)
File "<__array_function__ internals>", line 6, in linspace
File "C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\numpy\core\function_base.py", line 121, in linspace
.format(type(num)))
TypeError: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
[[node PyFunc_3 (defined at C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\metrics\coco_evaluation.py:368) ]]
[[node cond_1/Detections_Left_Groundtruth_Right/1 (defined at C:\Users\rob26\AppData\Local\Continuum\anaconda3\envs\tfnew\lib\site-packages\object_detection-0.1-py3.7.egg\object_detection\utils\visualization_utils.py:924) ]]