Raghul Asokan

Results 8 comments of Raghul Asokan

@Mice948 EAST sometimes doesn't detect texts perfectly which are too large(or zoomed in). You can try to add padding around those images to see if it gets detected nicely. You...

The expression "mask>=0.1" returns a tensor of size (1,N), hence the error. Squeeze out the 0th dimension to make it work. Replace that line with the following line: of_masked =...

There was another issue i came across in the function "remap_hist", the following line: idx = (cum_ref.unsqueeze(1) - rng.unsqueeze(2) < 0).sum(2).long() It throws an error due to data type mismatch....

This looks like the tensor on which expand is called has a shape of (64, 1), but trying to expand it to size (64), hence the error. From the code...

@disharameshh this error is related to tensor shape, please see if my above comment helps.

can you post me the complete exception traceback? i need to know which code statement is throwing error.

Can you print the shapes of new_x and ymax before the line "new_x[:,-1] = ymax"? Post the shapes of both tensors here.

@disharameshh in remap_dist function, replace `new_x[:,-1] = ymax` with`new_x[:,-1] = ymax.squeeze()`