{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/models/issues/4780","repository_url":"https://api.github.com/repos/tensorflow/models","labels_url":"https://api.github.com/repos/tensorflow/models/issues/4780/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/models/issues/4780/comments","events_url":"https://api.github.com/repos/tensorflow/models/issues/4780/events","html_url":"https://github.com/tensorflow/models/issues/4780","id":341548807,"node_id":"MDU6SXNzdWUzNDE1NDg4MDc=","number":4780,"title":"[object detection]  TypeError: can't pickle dict_values objects","user":{"login":"jj19940807","id":20723035,"node_id":"MDQ6VXNlcjIwNzIzMDM1","avatar_url":"https://avatars1.githubusercontent.com/u/20723035?v=4","gravatar_id":"","url":"https://api.github.com/users/jj19940807","html_url":"https://github.com/jj19940807","followers_url":"https://api.github.com/users/jj19940807/followers","following_url":"https://api.github.com/users/jj19940807/following{/other_user}","gists_url":"https://api.github.com/users/jj19940807/gists{/gist_id}","starred_url":"https://api.github.com/users/jj19940807/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jj19940807/subscriptions","organizations_url":"https://api.github.com/users/jj19940807/orgs","repos_url":"https://api.github.com/users/jj19940807/repos","events_url":"https://api.github.com/users/jj19940807/events{/privacy}","received_events_url":"https://api.github.com/users/jj19940807/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pkulzc","id":35853368,"node_id":"MDQ6VXNlcjM1ODUzMzY4","avatar_url":"https://avatars3.githubusercontent.com/u/35853368?v=4","gravatar_id":"","url":"https://api.github.com/users/pkulzc","html_url":"https://github.com/pkulzc","followers_url":"https://api.github.com/users/pkulzc/followers","following_url":"https://api.github.com/users/pkulzc/following{/other_user}","gists_url":"https://api.github.com/users/pkulzc/gists{/gist_id}","starred_url":"https://api.github.com/users/pkulzc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkulzc/subscriptions","organizations_url":"https://api.github.com/users/pkulzc/orgs","repos_url":"https://api.github.com/users/pkulzc/repos","events_url":"https://api.github.com/users/pkulzc/events{/privacy}","received_events_url":"https://api.github.com/users/pkulzc/received_events","type":"User","site_admin":false},"assignees":[{"login":"pkulzc","id":35853368,"node_id":"MDQ6VXNlcjM1ODUzMzY4","avatar_url":"https://avatars3.githubusercontent.com/u/35853368?v=4","gravatar_id":"","url":"https://api.github.com/users/pkulzc","html_url":"https://github.com/pkulzc","followers_url":"https://api.github.com/users/pkulzc/followers","following_url":"https://api.github.com/users/pkulzc/following{/other_user}","gists_url":"https://api.github.com/users/pkulzc/gists{/gist_id}","starred_url":"https://api.github.com/users/pkulzc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkulzc/subscriptions","organizations_url":"https://api.github.com/users/pkulzc/orgs","repos_url":"https://api.github.com/users/pkulzc/repos","events_url":"https://api.github.com/users/pkulzc/events{/privacy}","received_events_url":"https://api.github.com/users/pkulzc/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2018-07-16T14:44:04Z","updated_at":"2018-09-10T06:01:17Z","closed_at":null,"author_association":"NONE","body":"creating index...\r\nindex created!\r\n2018-07-16 22:12:38.626883: W T:\\src\\github\\tensorflow\\tensorflow\\core\\framework\r\n\\op_kernel.cc:1306] Invalid argument: TypeError: can't pickle dict_values objects\r\nTraceback (most recent call last):\r\n\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\ops\\scrip\r\nt_ops.py\", line 158, in __call__\r\n    ret = func(*args)\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_evaluation.py\", line 339, in first_value_func\r\n    self._metrics = self.evaluate()\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_evaluation.py\", line 193, in evaluate\r\n    self._detection_boxes_list)\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_tools.py\", line 118, in LoadAnnotations\r\n    results.dataset['categories'] = copy.deepcopy(self.dataset['categories'])\r\n\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\copy.py\", line 174, in deepcopy\r\n    rv = reductor(4)\r\n\r\nTypeError: can't pickle dict_values objects\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\client\\se\r\nssion.py\", line 1322, in _do_call\r\n    return fn(*args)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\client\\se\r\nssion.py\", line 1307, in _run_fn\r\n    options, feed_dict, fetch_list, target_list, run_metadata)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\client\\se\r\nssion.py\", line 1409, in _call_tf_sessionrun\r\n    run_metadata)\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: TypeError: can't p\r\nickle dict_values objects\r\nTraceback (most recent call last):\r\n\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\ops\\scrip\r\nt_ops.py\", line 158, in __call__\r\n    ret = func(*args)\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_evaluation.py\", line 339, in first_value_func\r\n    self._metrics = self.evaluate()\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_evaluation.py\", line 193, in evaluate\r\n    self._detection_boxes_list)\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_tools.py\", line 118, in LoadAnnotations\r\n    results.dataset['categories'] = copy.deepcopy(self.dataset['categories'])\r\n\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\copy.py\", line 174, in deepcopy\r\n    rv = reductor(4)\r\n\r\nTypeError: can't pickle dict_values objects\r\n\r\n\r\n         [[Node: PyFunc_1 = PyFunc[Tin=[], Tout=[DT_FLOAT], token=\"pyfunc_3\", _d\r\nevice=\"/job:localhost/replica:0/task:0/device:CPU:0\"]()]]\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"object_detection\\model_main.py\", line 101, in <module>\r\n    tf.app.run()\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\platform\\\r\napp.py\", line 125, in run\r\n    _sys.exit(main(argv))\r\n  File \"object_detection\\model_main.py\", line 97, in main\r\n    tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs[0])\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\training.py\", line 447, in train_and_evaluate\r\n    return executor.run()\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\training.py\", line 531, in run\r\n    return self.run_local()\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\training.py\", line 681, in run_local\r\n    eval_result, export_results = evaluator.evaluate_and_export()\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\training.py\", line 886, in evaluate_and_export\r\n    hooks=self._eval_spec.hooks)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\estimator.py\", line 460, in evaluate\r\n    output_dir=self.eval_dir(name))\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\estimator.py\", line 1386, in _evaluate_run\r\n    config=self._session_config)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\training\\\r\nevaluation.py\", line 212, in _evaluate_once\r\n    session.run(eval_ops, feed_dict)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\training\\\r\nmonitored_session.py\", line 689, in __exit__\r\n    self._close_internal(exception_type)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\training\\\r\nmonitored_session.py\", line 721, in _close_internal\r\n    h.end(self._coordinated_creator.tf_sess)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\training\\\r\nbasic_session_run_hooks.py\", line 824, in end\r\n    self._final_ops, feed_dict=self._final_ops_feed_dict)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\client\\se\r\nssion.py\", line 900, in run\r\n    run_metadata_ptr)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\client\\se\r\nssion.py\", line 1135, in _run\r\n    feed_dict_tensor, options, run_metadata)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\client\\se\r\nssion.py\", line 1316, in _do_run\r\n    run_metadata)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\client\\se\r\nssion.py\", line 1335, in _do_call\r\n    raise type(e)(node_def, op, message)\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: TypeError: can't p\r\nickle dict_values objects\r\nTraceback (most recent call last):\r\n\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\ops\\scrip\r\nt_ops.py\", line 158, in __call__\r\n    ret = func(*args)\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_evaluation.py\", line 339, in first_value_func\r\n    self._metrics = self.evaluate()\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_evaluation.py\", line 193, in evaluate\r\n    self._detection_boxes_list)\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_tools.py\", line 118, in LoadAnnotations\r\n    results.dataset['categories'] = copy.deepcopy(self.dataset['categories'])\r\n\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\copy.py\", line 174, in deepcopy\r\n    rv = reductor(4)\r\n\r\nTypeError: can't pickle dict_values objects\r\n\r\n\r\n         [[Node: PyFunc_1 = PyFunc[Tin=[], Tout=[DT_FLOAT], token=\"pyfunc_3\", _d\r\nevice=\"/job:localhost/replica:0/task:0/device:CPU:0\"]()]]\r\n\r\nCaused by op 'PyFunc_1', defined at:\r\n  File \"object_detection\\model_main.py\", line 101, in <module>\r\n    tf.app.run()\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\platform\\\r\napp.py\", line 125, in run\r\n    _sys.exit(main(argv))\r\n  File \"object_detection\\model_main.py\", line 97, in main\r\n    tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs[0])\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\training.py\", line 447, in train_and_evaluate\r\n    return executor.run()\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\training.py\", line 531, in run\r\n    return self.run_local()\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\training.py\", line 681, in run_local\r\n    eval_result, export_results = evaluator.evaluate_and_export()\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\training.py\", line 886, in evaluate_and_export\r\n    hooks=self._eval_spec.hooks)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\estimator.py\", line 453, in evaluate\r\n    input_fn, hooks, checkpoint_path)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\estimator.py\", line 1348, in _evaluate_build_graph\r\n    features, labels, model_fn_lib.ModeKeys.EVAL, self.config)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\estimator\r\n\\estimator.py\", line 1107, in _call_model_fn\r\n    model_fn_results = self._model_fn(features=features, **kwargs)\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\model_lib.py\", line 383, in model_fn\r\n    include_metrics_per_category=eval_config.include_metrics_per_category)\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\eval_util.py\", line 629, in get_eval_metric_ops_for_evaluators\r\n    input_data_fields.groundtruth_is_crowd)))\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_evaluation.py\", line 349, in get_estimator_eval_me\r\ntric_ops\r\n    first_value_op = tf.py_func(first_value_func, [], tf.float32)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\ops\\scrip\r\nt_ops.py\", line 384, in py_func\r\n    func=func, inp=inp, Tout=Tout, stateful=stateful, eager=False, name=name)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\ops\\scrip\r\nt_ops.py\", line 227, in _internal_py_func\r\n    input=inp, token=token, Tout=Tout, name=name)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\ops\\gen_s\r\ncript_ops.py\", line 130, in py_func\r\n    \"PyFunc\", input=input, token=token, Tout=Tout, name=name)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\framework\r\n\\op_def_library.py\", line 787, in _apply_op_helper\r\n    op_def=op_def)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\framework\r\n\\ops.py\", line 3414, in create_op\r\n    op_def=op_def)\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\framework\r\n\\ops.py\", line 1740, in __init__\r\n    self._traceback = self._graph._extract_stack()  # pylint: disable=protected-\r\naccess\r\n\r\nInvalidArgumentError (see above for traceback): TypeError: can't pickle dict_val\r\nues objects\r\nTraceback (most recent call last):\r\n\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\ops\\scrip\r\nt_ops.py\", line 158, in __call__\r\n    ret = func(*args)\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_evaluation.py\", line 339, in first_value_func\r\n    self._metrics = self.evaluate()\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_evaluation.py\", line 193, in evaluate\r\n    self._detection_boxes_list)\r\n\r\n  File \"D:\\Program Files\\Anaconda3\\Lib\\site-packages\\tensorflow\\models\\research\\\r\nobject_detection\\metrics\\coco_tools.py\", line 118, in LoadAnnotations\r\n    results.dataset['categories'] = copy.deepcopy(self.dataset['categories'])\r\n\r\n  File \"d:\\Program Files\\Anaconda3\\lib\\copy.py\", line 174, in deepcopy\r\n    rv = reductor(4)\r\n\r\nTypeError: can't pickle dict_values objects\r\n\r\n\r\n         [[Node: PyFunc_1 = PyFunc[Tin=[], Tout=[DT_FLOAT], token=\"pyfunc_3\", _d\r\nevice=\"/job:localhost/replica:0/task:0/device:CPU:0\"]()]]"},"comment":{"url":"https://api.github.com/repos/tensorflow/models/issues/comments/419796986","html_url":"https://github.com/tensorflow/models/issues/4780#issuecomment-419796986","issue_url":"https://api.github.com/repos/tensorflow/models/issues/4780","id":419796986,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTc5Njk4Ng==","user":{"login":"RocketRider","id":1881640,"node_id":"MDQ6VXNlcjE4ODE2NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/1881640?v=4","gravatar_id":"","url":"https://api.github.com/users/RocketRider","html_url":"https://github.com/RocketRider","followers_url":"https://api.github.com/users/RocketRider/followers","following_url":"https://api.github.com/users/RocketRider/following{/other_user}","gists_url":"https://api.github.com/users/RocketRider/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketRider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketRider/subscriptions","organizations_url":"https://api.github.com/users/RocketRider/orgs","repos_url":"https://api.github.com/users/RocketRider/repos","events_url":"https://api.github.com/users/RocketRider/events{/privacy}","received_events_url":"https://api.github.com/users/RocketRider/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T06:01:17Z","updated_at":"2018-09-10T06:01:17Z","author_association":"NONE","body":"I tried the fix as well. For me it is still producing the same error. I am using Python 3.6\r\n\r\n```\r\n\r\ncreating index...\r\nindex created!\r\n2018-09-10 07:48:14.389071: W tensorflow/core/framework/op_kernel.cc:1263] Invalid argument: TypeError: can't pickle dict_values objects\r\nTraceback (most recent call last):\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/ops/script_ops.py\", line 206, in __call__\r\n    ret = func(*args)\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_evaluation.py\", line 332, in first_value_func\r\n    self._metrics = self.evaluate()\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_evaluation.py\", line 193, in evaluate\r\n    self._detection_boxes_list)\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_tools.py\", line 118, in LoadAnnotations\r\n    results.dataset['categories'] = copy.deepcopy(self.dataset['categories'])\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/copy.py\", line 169, in deepcopy\r\n    rv = reductor(4)\r\n\r\nTypeError: can't pickle dict_values objects\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1278, in _do_call\r\n    return fn(*args)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1263, in _run_fn\r\n    options, feed_dict, fetch_list, target_list, run_metadata)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1350, in _call_tf_sessionrun\r\n    run_metadata)\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: TypeError: can't pickle dict_values objects\r\nTraceback (most recent call last):\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/ops/script_ops.py\", line 206, in __call__\r\n    ret = func(*args)\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_evaluation.py\", line 332, in first_value_func\r\n    self._metrics = self.evaluate()\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_evaluation.py\", line 193, in evaluate\r\n    self._detection_boxes_list)\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_tools.py\", line 118, in LoadAnnotations\r\n    results.dataset['categories'] = copy.deepcopy(self.dataset['categories'])\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/copy.py\", line 169, in deepcopy\r\n    rv = reductor(4)\r\n\r\nTypeError: can't pickle dict_values objects\r\n\r\n\r\n\t [[Node: PyFunc_1 = PyFunc[Tin=[], Tout=[DT_FLOAT], token=\"pyfunc_7\", _device=\"/job:localhost/replica:0/task:0/device:CPU:0\"]()]]\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"object_detection/model_main.py\", line 103, in <module>\r\n    tf.app.run()\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/platform/app.py\", line 125, in run\r\n    _sys.exit(main(argv))\r\n  File \"object_detection/model_main.py\", line 99, in main\r\n    tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs[0])\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 451, in train_and_evaluate\r\n    return executor.run()\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 590, in run\r\n    return self.run_local()\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 691, in run_local\r\n    saving_listeners=saving_listeners)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 376, in train\r\n    loss = self._train_model(input_fn, hooks, saving_listeners)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 1145, in _train_model\r\n    return self._train_model_default(input_fn, hooks, saving_listeners)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 1173, in _train_model_default\r\n    saving_listeners)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 1451, in _train_with_estimator_spec\r\n    _, loss = mon_sess.run([estimator_spec.train_op, estimator_spec.loss])\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py\", line 695, in __exit__\r\n    self._close_internal(exception_type)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py\", line 727, in _close_internal\r\n    h.end(self._coordinated_creator.tf_sess)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/basic_session_run_hooks.py\", line 470, in end\r\n    self._save(session, last_step)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/basic_session_run_hooks.py\", line 489, in _save\r\n    if l.after_save(session, step):\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 497, in after_save\r\n    self._evaluate(global_step_value)  # updates self.eval_result\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 517, in _evaluate\r\n    self._evaluator.evaluate_and_export())\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 884, in evaluate_and_export\r\n    hooks=self._eval_spec.hooks)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 470, in evaluate\r\n    output_dir=self.eval_dir(name))\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 1501, in _evaluate_run\r\n    config=self._session_config)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/evaluation.py\", line 212, in _evaluate_once\r\n    session.run(eval_ops, feed_dict)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py\", line 695, in __exit__\r\n    self._close_internal(exception_type)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py\", line 727, in _close_internal\r\n    h.end(self._coordinated_creator.tf_sess)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/basic_session_run_hooks.py\", line 824, in end\r\n    self._final_ops, feed_dict=self._final_ops_feed_dict)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 877, in run\r\n    run_metadata_ptr)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1100, in _run\r\n    feed_dict_tensor, options, run_metadata)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1272, in _do_run\r\n    run_metadata)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/client/session.py\", line 1291, in _do_call\r\n    raise type(e)(node_def, op, message)\r\ntensorflow.python.framework.errors_impl.InvalidArgumentError: TypeError: can't pickle dict_values objects\r\nTraceback (most recent call last):\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/ops/script_ops.py\", line 206, in __call__\r\n    ret = func(*args)\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_evaluation.py\", line 332, in first_value_func\r\n    self._metrics = self.evaluate()\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_evaluation.py\", line 193, in evaluate\r\n    self._detection_boxes_list)\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_tools.py\", line 118, in LoadAnnotations\r\n    results.dataset['categories'] = copy.deepcopy(self.dataset['categories'])\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/copy.py\", line 169, in deepcopy\r\n    rv = reductor(4)\r\n\r\nTypeError: can't pickle dict_values objects\r\n\r\n\r\n\t [[Node: PyFunc_1 = PyFunc[Tin=[], Tout=[DT_FLOAT], token=\"pyfunc_7\", _device=\"/job:localhost/replica:0/task:0/device:CPU:0\"]()]]\r\n\r\nCaused by op 'PyFunc_1', defined at:\r\n  File \"object_detection/model_main.py\", line 103, in <module>\r\n    tf.app.run()\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/platform/app.py\", line 125, in run\r\n    _sys.exit(main(argv))\r\n  File \"object_detection/model_main.py\", line 99, in main\r\n    tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs[0])\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 451, in train_and_evaluate\r\n    return executor.run()\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 590, in run\r\n    return self.run_local()\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 691, in run_local\r\n    saving_listeners=saving_listeners)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 376, in train\r\n    loss = self._train_model(input_fn, hooks, saving_listeners)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 1145, in _train_model\r\n    return self._train_model_default(input_fn, hooks, saving_listeners)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 1173, in _train_model_default\r\n    saving_listeners)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 1451, in _train_with_estimator_spec\r\n    _, loss = mon_sess.run([estimator_spec.train_op, estimator_spec.loss])\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py\", line 695, in __exit__\r\n    self._close_internal(exception_type)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/monitored_session.py\", line 727, in _close_internal\r\n    h.end(self._coordinated_creator.tf_sess)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/basic_session_run_hooks.py\", line 470, in end\r\n    self._save(session, last_step)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/training/basic_session_run_hooks.py\", line 489, in _save\r\n    if l.after_save(session, step):\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 497, in after_save\r\n    self._evaluate(global_step_value)  # updates self.eval_result\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 517, in _evaluate\r\n    self._evaluator.evaluate_and_export())\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/training.py\", line 884, in evaluate_and_export\r\n    hooks=self._eval_spec.hooks)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 463, in evaluate\r\n    input_fn, hooks, checkpoint_path)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 1463, in _evaluate_build_graph\r\n    features, labels, model_fn_lib.ModeKeys.EVAL, self.config)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/estimator/estimator.py\", line 1133, in _call_model_fn\r\n    model_fn_results = self._model_fn(features=features, **kwargs)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/model_lib.py\", line 391, in model_fn\r\n    eval_dict)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/eval_util.py\", line 656, in get_eval_metric_ops_for_evaluators\r\n    eval_dict))\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_evaluation.py\", line 342, in get_estimator_eval_metric_ops\r\n    first_value_op = tf.py_func(first_value_func, [], tf.float32)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/ops/script_ops.py\", line 456, in py_func\r\n    func=func, inp=inp, Tout=Tout, stateful=stateful, eager=False, name=name)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/ops/script_ops.py\", line 281, in _internal_py_func\r\n    input=inp, token=token, Tout=Tout, name=name)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/ops/gen_script_ops.py\", line 128, in py_func\r\n    \"PyFunc\", input=input, token=token, Tout=Tout, name=name)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py\", line 787, in _apply_op_helper\r\n    op_def=op_def)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py\", line 454, in new_func\r\n    return func(*args, **kwargs)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/framework/ops.py\", line 3155, in create_op\r\n    op_def=op_def)\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/framework/ops.py\", line 1717, in __init__\r\n    self._traceback = tf_stack.extract_stack()\r\n\r\nInvalidArgumentError (see above for traceback): TypeError: can't pickle dict_values objects\r\nTraceback (most recent call last):\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/tensorflow/python/ops/script_ops.py\", line 206, in __call__\r\n    ret = func(*args)\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_evaluation.py\", line 332, in first_value_func\r\n    self._metrics = self.evaluate()\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_evaluation.py\", line 193, in evaluate\r\n    self._detection_boxes_list)\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/site-packages/object_detection-0.1-py3.6.egg/object_detection/metrics/coco_tools.py\", line 118, in LoadAnnotations\r\n    results.dataset['categories'] = copy.deepcopy(self.dataset['categories'])\r\n\r\n  File \"/home/vasa/dev/tensorflow/venv/lib/python3.6/copy.py\", line 169, in deepcopy\r\n    rv = reductor(4)\r\n\r\nTypeError: can't pickle dict_values objects\r\n\r\n\r\n\t [[Node: PyFunc_1 = PyFunc[Tin=[], Tout=[DT_FLOAT], token=\"pyfunc_7\", _device=\"/job:localhost/replica:0/task:0/device:CPU:0\"]()]]\r\n\r\n\r\n```"}}
{"actor":{"display_login":"RocketRider"}}