HanlinMo / Rotation-Invariant-Coordinate-Convolutional-Neural-Network

The code of the paper "RIC-CNN: Rotation-Invariant Coordinate Convolutional Neural Network"
17 stars 5 forks source link

RuntimeError: invalid batch size of offse #5

Closed LinMenwill closed 8 months ago

LinMenwill commented 8 months ago

Hi!

Thank you very much for your research and for sharing the code.

When I attempted to replicate your model using the following code:

model = get_ric_vgg(BATCH_SIZE=128)
model = model.cuda()
x = torch.randn(4, 3, 28, 28).cuda()
out = model(x)
print(out)

I encountered a RuntimeError: invalid batch size of offset.

Could you please assist me in identifying any configurations that I may have overlooked or not set correctly? I would greatly appreciate your response.

Thank you!