aliyun/NeWCRFs

Error when i test

baohaooo opened this issue · 1 comments

hi sir
when i test my own 620*420 jpg,the flowing error occur,do you know how can i resolve the error?
image

This is probably because x and v have different sizes during decoding. Before taking x or v as input to the function window_partition, we usually need to pad them. But the process of padding x or v is based on the size of x, the size of v may get wrong after padding. U can change the padding process(it's in the Class CRFBlock) so that the size of padded v get the same size of the padded x.