{
  "id": 309989,
  "title": "got this error, using the happywhale-tfrecords-detic-box-768 dataset. Any idea what that is ?",
  "url": "/competitions/happy-whale-and-dolphin/discussion/309989",
  "author_name": "der Name",
  "post_date": "2022-02-26T21:18:32.867000",
  "votes": 6,
  "comment_count": 0,
  "views": 0,
  "content": "<hr>\n<p>AttributeError                            Traceback (most recent call last)<br>\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)<br>\n    736         # Fast path for the case <code>self._structure</code> is not a nested structure.<br>\n--&gt; 737         return self._element_spec._from_compatible_tensor_list(ret)  # pylint: disable=protected-access<br>\n    738       except AttributeError:</p>\n<p>AttributeError: 'tuple' object has no attribute '_from_compatible_tensor_list'</p>\n<p>During handling of the above exception, another exception occurred:</p>\n<p>InvalidArgumentError                      Traceback (most recent call last)<br>\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/context.py in execution_mode(mode)<br>\n   2112       ctx.executor = executor_new<br>\n-&gt; 2113       yield<br>\n   2114     finally:</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)<br>\n    738       except AttributeError:<br>\n--&gt; 739         return structure.from_compatible_tensor_list(self._element_spec, ret)<br>\n    740 </p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in from_compatible_tensor_list(element_spec, tensor_list)<br>\n    243       lambda spec, value: spec._from_compatible_tensor_list(value),<br>\n--&gt; 244       element_spec, tensor_list)<br>\n    245 </p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in _from_tensor_list_helper(decode_fn, element_spec, tensor_list)<br>\n    218     value = tensor_list[i:i + num_flat_values]<br>\n--&gt; 219     flat_ret.append(decode_fn(component_spec, value))<br>\n    220     i += num_flat_values</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in (spec, value)<br>\n    242   return _from_tensor_list_helper(<br>\n--&gt; 243       lambda spec, value: spec._from_compatible_tensor_list(value),<br>\n    244       element_spec, tensor_list)</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/tensor_spec.py in _from_compatible_tensor_list(self, tensor_list)<br>\n    176     assert len(tensor_list) == 1<br>\n--&gt; 177     tensor_list[0].set_shape(self._shape)<br>\n    178     return tensor_list[0]</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/ops.py in set_shape(self, shape)<br>\n   1213   def set_shape(self, shape):<br>\n-&gt; 1214     if not self.shape.is_compatible_with(shape):<br>\n   1215       raise ValueError(</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/ops.py in shape(self)<br>\n   1174         # <code>EagerTensor</code>, in C.<br>\n-&gt; 1175         self._tensor_shape = tensor_shape.TensorShape(self._shape_tuple())<br>\n   1176       except core._NotOkStatusException as e:</p>\n<p>InvalidArgumentError: Feature: detic_box (data type: int64) is required but could not be found.<br>\n     [[{{node ParseSingleExample/ParseExample/ParseExampleV2}}]]</p>\n<p>During handling of the above exception, another exception occurred:</p>\n<p>InvalidArgumentError                      Traceback (most recent call last)<br>\n/tmp/ipykernel_42/1734396894.py in <br>\n----&gt; 1 for (sample,label) in ds:<br>\n      2     img = sample['inp1']<br>\n      3     img<br>\n      4     break<br>\n      5 #     plt.figure(figsize=(25,int(25*row/col)))</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in <strong>next</strong>(self)<br>\n    745   def <strong>next</strong>(self):<br>\n    746     try:<br>\n--&gt; 747       return self._next_internal()<br>\n    748     except errors.OutOfRangeError:<br>\n    749       raise StopIteration</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)<br>\n    737         return self._element_spec._from_compatible_tensor_list(ret)  # pylint: disable=protected-access<br>\n    738       except AttributeError:<br>\n--&gt; 739         return structure.from_compatible_tensor_list(self._element_spec, ret)<br>\n    740 <br>\n    741   <a href=\"https://www.kaggle.com/property\" target=\"_blank\">@property</a></p>\n<p>/opt/conda/lib/python3.7/contextlib.py in <strong>exit</strong>(self, type, value, traceback)<br>\n    128                 value = type()<br>\n    129             try:<br>\n--&gt; 130                 self.gen.throw(type, value, traceback)<br>\n    131             except StopIteration as exc:<br>\n    132                 # Suppress StopIteration <em>unless</em> it's the same exception that</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/context.py in execution_mode(mode)<br>\n   2114     finally:<br>\n   2115       ctx.executor = executor_old<br>\n-&gt; 2116       executor_new.wait()<br>\n   2117 <br>\n   2118 </p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/executor.py in wait(self)<br>\n     67   def wait(self):<br>\n     68     \"\"\"Waits for ops dispatched in this executor to finish.\"\"\"<br>\n---&gt; 69     pywrap_tfe.TFE_ExecutorWaitForAllPendingNodes(self._handle)<br>\n     70 <br>\n     71   def clear_error(self):</p>\n<p>InvalidArgumentError: Feature: detic_box (data type: int64) is required but could not be found.<br>\n     [[{{node ParseSingleExample/ParseExample/ParseExampleV2}}]]</p>",
  "messages": [
    {
      "id": 1705824,
      "postDate": "2022-02-26T21:18:32.867Z",
      "content": "<hr>\n<p>AttributeError                            Traceback (most recent call last)<br>\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)<br>\n    736         # Fast path for the case <code>self._structure</code> is not a nested structure.<br>\n--&gt; 737         return self._element_spec._from_compatible_tensor_list(ret)  # pylint: disable=protected-access<br>\n    738       except AttributeError:</p>\n<p>AttributeError: 'tuple' object has no attribute '_from_compatible_tensor_list'</p>\n<p>During handling of the above exception, another exception occurred:</p>\n<p>InvalidArgumentError                      Traceback (most recent call last)<br>\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/context.py in execution_mode(mode)<br>\n   2112       ctx.executor = executor_new<br>\n-&gt; 2113       yield<br>\n   2114     finally:</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)<br>\n    738       except AttributeError:<br>\n--&gt; 739         return structure.from_compatible_tensor_list(self._element_spec, ret)<br>\n    740 </p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in from_compatible_tensor_list(element_spec, tensor_list)<br>\n    243       lambda spec, value: spec._from_compatible_tensor_list(value),<br>\n--&gt; 244       element_spec, tensor_list)<br>\n    245 </p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in _from_tensor_list_helper(decode_fn, element_spec, tensor_list)<br>\n    218     value = tensor_list[i:i + num_flat_values]<br>\n--&gt; 219     flat_ret.append(decode_fn(component_spec, value))<br>\n    220     i += num_flat_values</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in (spec, value)<br>\n    242   return _from_tensor_list_helper(<br>\n--&gt; 243       lambda spec, value: spec._from_compatible_tensor_list(value),<br>\n    244       element_spec, tensor_list)</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/tensor_spec.py in _from_compatible_tensor_list(self, tensor_list)<br>\n    176     assert len(tensor_list) == 1<br>\n--&gt; 177     tensor_list[0].set_shape(self._shape)<br>\n    178     return tensor_list[0]</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/ops.py in set_shape(self, shape)<br>\n   1213   def set_shape(self, shape):<br>\n-&gt; 1214     if not self.shape.is_compatible_with(shape):<br>\n   1215       raise ValueError(</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/ops.py in shape(self)<br>\n   1174         # <code>EagerTensor</code>, in C.<br>\n-&gt; 1175         self._tensor_shape = tensor_shape.TensorShape(self._shape_tuple())<br>\n   1176       except core._NotOkStatusException as e:</p>\n<p>InvalidArgumentError: Feature: detic_box (data type: int64) is required but could not be found.<br>\n     [[{{node ParseSingleExample/ParseExample/ParseExampleV2}}]]</p>\n<p>During handling of the above exception, another exception occurred:</p>\n<p>InvalidArgumentError                      Traceback (most recent call last)<br>\n/tmp/ipykernel_42/1734396894.py in <br>\n----&gt; 1 for (sample,label) in ds:<br>\n      2     img = sample['inp1']<br>\n      3     img<br>\n      4     break<br>\n      5 #     plt.figure(figsize=(25,int(25*row/col)))</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in <strong>next</strong>(self)<br>\n    745   def <strong>next</strong>(self):<br>\n    746     try:<br>\n--&gt; 747       return self._next_internal()<br>\n    748     except errors.OutOfRangeError:<br>\n    749       raise StopIteration</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)<br>\n    737         return self._element_spec._from_compatible_tensor_list(ret)  # pylint: disable=protected-access<br>\n    738       except AttributeError:<br>\n--&gt; 739         return structure.from_compatible_tensor_list(self._element_spec, ret)<br>\n    740 <br>\n    741   <a href=\"https://www.kaggle.com/property\" target=\"_blank\">@property</a></p>\n<p>/opt/conda/lib/python3.7/contextlib.py in <strong>exit</strong>(self, type, value, traceback)<br>\n    128                 value = type()<br>\n    129             try:<br>\n--&gt; 130                 self.gen.throw(type, value, traceback)<br>\n    131             except StopIteration as exc:<br>\n    132                 # Suppress StopIteration <em>unless</em> it's the same exception that</p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/context.py in execution_mode(mode)<br>\n   2114     finally:<br>\n   2115       ctx.executor = executor_old<br>\n-&gt; 2116       executor_new.wait()<br>\n   2117 <br>\n   2118 </p>\n<p>/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/executor.py in wait(self)<br>\n     67   def wait(self):<br>\n     68     \"\"\"Waits for ops dispatched in this executor to finish.\"\"\"<br>\n---&gt; 69     pywrap_tfe.TFE_ExecutorWaitForAllPendingNodes(self._handle)<br>\n     70 <br>\n     71   def clear_error(self):</p>\n<p>InvalidArgumentError: Feature: detic_box (data type: int64) is required but could not be found.<br>\n     [[{{node ParseSingleExample/ParseExample/ParseExampleV2}}]]</p>",
      "rawMarkdown": "---------------------------------------------------------------------------\nAttributeError                            Traceback (most recent call last)\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)\n    736         # Fast path for the case `self._structure` is not a nested structure.\n--> 737         return self._element_spec._from_compatible_tensor_list(ret)  # pylint: disable=protected-access\n    738       except AttributeError:\n\nAttributeError: 'tuple' object has no attribute '_from_compatible_tensor_list'\n\nDuring handling of the above exception, another exception occurred:\n\nInvalidArgumentError                      Traceback (most recent call last)\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/context.py in execution_mode(mode)\n   2112       ctx.executor = executor_new\n-> 2113       yield\n   2114     finally:\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)\n    738       except AttributeError:\n--> 739         return structure.from_compatible_tensor_list(self._element_spec, ret)\n    740 \n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in from_compatible_tensor_list(element_spec, tensor_list)\n    243       lambda spec, value: spec._from_compatible_tensor_list(value),\n--> 244       element_spec, tensor_list)\n    245 \n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in _from_tensor_list_helper(decode_fn, element_spec, tensor_list)\n    218     value = tensor_list[i:i + num_flat_values]\n--> 219     flat_ret.append(decode_fn(component_spec, value))\n    220     i += num_flat_values\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in <lambda>(spec, value)\n    242   return _from_tensor_list_helper(\n--> 243       lambda spec, value: spec._from_compatible_tensor_list(value),\n    244       element_spec, tensor_list)\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/tensor_spec.py in _from_compatible_tensor_list(self, tensor_list)\n    176     assert len(tensor_list) == 1\n--> 177     tensor_list[0].set_shape(self._shape)\n    178     return tensor_list[0]\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/ops.py in set_shape(self, shape)\n   1213   def set_shape(self, shape):\n-> 1214     if not self.shape.is_compatible_with(shape):\n   1215       raise ValueError(\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/ops.py in shape(self)\n   1174         # `EagerTensor`, in C.\n-> 1175         self._tensor_shape = tensor_shape.TensorShape(self._shape_tuple())\n   1176       except core._NotOkStatusException as e:\n\nInvalidArgumentError: Feature: detic_box (data type: int64) is required but could not be found.\n\t [[{{node ParseSingleExample/ParseExample/ParseExampleV2}}]]\n\nDuring handling of the above exception, another exception occurred:\n\nInvalidArgumentError                      Traceback (most recent call last)\n/tmp/ipykernel_42/1734396894.py in <module>\n----> 1 for (sample,label) in ds:\n      2     img = sample['inp1']\n      3     img\n      4     break\n      5 #     plt.figure(figsize=(25,int(25*row/col)))\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in __next__(self)\n    745   def __next__(self):\n    746     try:\n--> 747       return self._next_internal()\n    748     except errors.OutOfRangeError:\n    749       raise StopIteration\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)\n    737         return self._element_spec._from_compatible_tensor_list(ret)  # pylint: disable=protected-access\n    738       except AttributeError:\n--> 739         return structure.from_compatible_tensor_list(self._element_spec, ret)\n    740 \n    741   @property\n\n/opt/conda/lib/python3.7/contextlib.py in __exit__(self, type, value, traceback)\n    128                 value = type()\n    129             try:\n--> 130                 self.gen.throw(type, value, traceback)\n    131             except StopIteration as exc:\n    132                 # Suppress StopIteration *unless* it's the same exception that\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/context.py in execution_mode(mode)\n   2114     finally:\n   2115       ctx.executor = executor_old\n-> 2116       executor_new.wait()\n   2117 \n   2118 \n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/executor.py in wait(self)\n     67   def wait(self):\n     68     \"\"\"Waits for ops dispatched in this executor to finish.\"\"\"\n---> 69     pywrap_tfe.TFE_ExecutorWaitForAllPendingNodes(self._handle)\n     70 \n     71   def clear_error(self):\n\nInvalidArgumentError: Feature: detic_box (data type: int64) is required but could not be found.\n\t [[{{node ParseSingleExample/ParseExample/ParseExampleV2}}]]",
      "votes": 6
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "1705824": "---------------------------------------------------------------------------\nAttributeError                            Traceback (most recent call last)\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)\n    736         # Fast path for the case `self._structure` is not a nested structure.\n--> 737         return self._element_spec._from_compatible_tensor_list(ret)  # pylint: disable=protected-access\n    738       except AttributeError:\n\nAttributeError: 'tuple' object has no attribute '_from_compatible_tensor_list'\n\nDuring handling of the above exception, another exception occurred:\n\nInvalidArgumentError                      Traceback (most recent call last)\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/context.py in execution_mode(mode)\n   2112       ctx.executor = executor_new\n-> 2113       yield\n   2114     finally:\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)\n    738       except AttributeError:\n--> 739         return structure.from_compatible_tensor_list(self._element_spec, ret)\n    740 \n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in from_compatible_tensor_list(element_spec, tensor_list)\n    243       lambda spec, value: spec._from_compatible_tensor_list(value),\n--> 244       element_spec, tensor_list)\n    245 \n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in _from_tensor_list_helper(decode_fn, element_spec, tensor_list)\n    218     value = tensor_list[i:i + num_flat_values]\n--> 219     flat_ret.append(decode_fn(component_spec, value))\n    220     i += num_flat_values\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py in <lambda>(spec, value)\n    242   return _from_tensor_list_helper(\n--> 243       lambda spec, value: spec._from_compatible_tensor_list(value),\n    244       element_spec, tensor_list)\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/tensor_spec.py in _from_compatible_tensor_list(self, tensor_list)\n    176     assert len(tensor_list) == 1\n--> 177     tensor_list[0].set_shape(self._shape)\n    178     return tensor_list[0]\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/ops.py in set_shape(self, shape)\n   1213   def set_shape(self, shape):\n-> 1214     if not self.shape.is_compatible_with(shape):\n   1215       raise ValueError(\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/ops.py in shape(self)\n   1174         # `EagerTensor`, in C.\n-> 1175         self._tensor_shape = tensor_shape.TensorShape(self._shape_tuple())\n   1176       except core._NotOkStatusException as e:\n\nInvalidArgumentError: Feature: detic_box (data type: int64) is required but could not be found.\n\t [[{{node ParseSingleExample/ParseExample/ParseExampleV2}}]]\n\nDuring handling of the above exception, another exception occurred:\n\nInvalidArgumentError                      Traceback (most recent call last)\n/tmp/ipykernel_42/1734396894.py in <module>\n----> 1 for (sample,label) in ds:\n      2     img = sample['inp1']\n      3     img\n      4     break\n      5 #     plt.figure(figsize=(25,int(25*row/col)))\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in __next__(self)\n    745   def __next__(self):\n    746     try:\n--> 747       return self._next_internal()\n    748     except errors.OutOfRangeError:\n    749       raise StopIteration\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/data/ops/iterator_ops.py in _next_internal(self)\n    737         return self._element_spec._from_compatible_tensor_list(ret)  # pylint: disable=protected-access\n    738       except AttributeError:\n--> 739         return structure.from_compatible_tensor_list(self._element_spec, ret)\n    740 \n    741   @property\n\n/opt/conda/lib/python3.7/contextlib.py in __exit__(self, type, value, traceback)\n    128                 value = type()\n    129             try:\n--> 130                 self.gen.throw(type, value, traceback)\n    131             except StopIteration as exc:\n    132                 # Suppress StopIteration *unless* it's the same exception that\n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/context.py in execution_mode(mode)\n   2114     finally:\n   2115       ctx.executor = executor_old\n-> 2116       executor_new.wait()\n   2117 \n   2118 \n\n/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/executor.py in wait(self)\n     67   def wait(self):\n     68     \"\"\"Waits for ops dispatched in this executor to finish.\"\"\"\n---> 69     pywrap_tfe.TFE_ExecutorWaitForAllPendingNodes(self._handle)\n     70 \n     71   def clear_error(self):\n\nInvalidArgumentError: Feature: detic_box (data type: int64) is required but could not be found.\n\t [[{{node ParseSingleExample/ParseExample/ParseExampleV2}}]]"
  }
}