Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the problem of function "predict_transform" #64

Open
jzh9830 opened this issue Apr 17, 2020 · 1 comment
Open

the problem of function "predict_transform" #64

jzh9830 opened this issue Apr 17, 2020 · 1 comment

Comments

@jzh9830
Copy link

jzh9830 commented Apr 17, 2020

stride = inp_dim // prediction.size(2)
grid_size = inp_dim // stride
when inp_dim was not exactly divided by prediction.size(2), it may occur a error in prediction.view. Considering the grid_size equaling to the size of feature map, could we change it to "grid_size = prediction.size(2)" directly?

@samutamm
Copy link

The model seems to expect image of different size, which causes the problem. This #40 (comment) fixed it for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants