Thanks. I have converted them into tensor already.
One issue is that from_blob needs three input argument, and the second argument are img.col and img.row which I donot have here.
@Chen0729
If you previously convert it into np.array, then you can check the np array size, right?
Then you know what is the col and row.
Or, in python, you can do
t = torch.FloatTensor(np.array(data))
then
t.size() to check the col and row.