can't convert np.ndarray of type numpy.object_.
shainaraza opened this issue · 1 comments
shainaraza commented
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-46-3435b262f1ae> in <module>()
----> 1 trainer.train()
5 frames
/usr/local/lib/python3.6/dist-packages/multimodal_transformers/data/tabular_torch_dataset.py in __getitem__(self, idx)
49 item['labels'] = torch.tensor(self.labels[idx]) if self.labels is not None else None
50 item['cat_feats'] = torch.tensor(self.cat_feats[idx]).float() \
---> 51 if self.cat_feats is not None else torch.zeros(0)
52 item['numerical_feats'] = torch.tensor(self.numerical_feats[idx]).float()\
53 if self.numerical_feats is not None else torch.zeros(0)
TypeError: can't convert np.ndarray of type numpy.object_. The only supported types are: float64, float32, float16, complex64, complex128, int64, int32, int16, int8, uint8, and bool.
any help with this error
akashsaravanan-georgian commented
Closing this issue given it's been 2 years and there's not much information in the issue. Feel free to re-open if you remember what the problem was.