You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short Description
[ yolo_v8_detector requires ragged tensor for bounding boxes. the torch version of this is nested_tensor however .size() is not supported for torch nested tensor. nested_tensor
returns the following error when attempting training
File ~.conda\envs\pumps_pycro_torch_keras\lib\site-packages\torch_tensor.py:1062, in Tensor.array(self, dtype)
1060 return handle_torch_function(Tensor.array, (self,), self, dtype=dtype)
1061 if dtype is None:
-> 1062 return self.numpy()
1063 else:
1064 return self.numpy().astype(dtype, copy=False)
RuntimeError: Internal error: NestedTensorImpl doesn't support sizes. Please file an issue.
from torch doc:
Even though a NestedTensor does not support .size() (or .shape), it supports .size(i) if dimension i is regular.
Short Description
[ yolo_v8_detector requires ragged tensor for bounding boxes. the torch version of this is nested_tensor however .size() is not supported for torch nested tensor. nested_tensor
Existing Implementations
for tf backend this works:
but for torch backend the equivalent:
returns the following error when attempting training
File ~.conda\envs\pumps_pycro_torch_keras\lib\site-packages\torch_tensor.py:1062, in Tensor.array(self, dtype)
1060 return handle_torch_function(Tensor.array, (self,), self, dtype=dtype)
1061 if dtype is None:
-> 1062 return self.numpy()
1063 else:
1064 return self.numpy().astype(dtype, copy=False)
RuntimeError: Internal error: NestedTensorImpl doesn't support sizes. Please file an issue.
from torch doc:
Even though a NestedTensor does not support .size() (or .shape), it supports .size(i) if dimension i is regular.
Other Information
The text was updated successfully, but these errors were encountered: