Open hktxt opened 6 years ago
I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.
I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.
but the result I got is different with the blog
I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.
I konw why. Thx
I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.
I konw why. Thx
Hi @ghostPath , I got the different result as well. Would you mind to share your insight ?
I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.
I konw why. Thx
Hi @ghostPath , I got the different result as well. Would you mind to share your insight ?
我觉得是因为权重是随机初始化的?
I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.
I konw why. Thx
Hi @ghostPath , I got the different result as well. Would you mind to share your insight ?
我觉得是因为权重是随机初始化的?
Thank you @ghostPath . I think you're right. I just found related paragraph:
At this point, our network has random weights, and will not produce the correct output. We need to load a weight file in our network. We'll be making use of the official weight file for this purpose.
@ayooshkathuria can you please update the blog and close this issue? The code base and tutorial both have grid_size = inp_dim//stride which leads to the error mentioned in this issue.
I have encountered the same problem as you,after changed the third line "grid_size = inp_dim // stride" to "grid_size = prediction.size(2)" in function predict_transform,the problem fixed.
but the result I got is different with the blog
It's just random weights. It's expected to be random and different
totally use your code, does not change any thing. but error comes out.... here is error info C:\Users\Max\Anaconda3\envs\Pytorch\lib\site-packages\torch\nn\modules\upsampling.py:122: UserWarning: nn.Upsampling is deprecated. Use nn.functional.interpolate instead. warnings.warn("nn.Upsampling is deprecated. Use nn.functional.interpolate instead.")
RuntimeError Traceback (most recent call last)