Thank you for your reply.
In dataset, yes i use single box but while training there are batch of boxes.
When i do that unsqueeze there is another error of :

RuntimeError: The size of tensor a (380) must match the size of tensor b (3) at non-singleton dimension 0

I think there must be other solution.
I will explain briefly what i want to do:
Faster RCNN requires boxes to be [N,4]. i don’t know really what N represents.



boxes (FloatTensor[N, 4]): the coordinates of the N bounding boxes in [x0, y0, x1, y1] format, ranging from 0 to W and 0 to H
this is official Explanation of that but still…


if i do same with Dataframe it works. but i don’t want to train it with pandas. because pandas is slow.