The issue is that your numpy array has dtype=object, which might come from mixed dtypes or shapes, if I’m not mistaken.
The output also looks as if you are working with nested arrays. Could you try to print the shapes of all “internal” arrays and try to create a single array via e.g. np.stack?
Once you have a single array with a valid dtype, you could use torch.from_numpy.