You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error:
load checkpoint models_stereo/stereo_rcnn_12_6477.pth
load model successfully!
Traceback (most recent call last):
File "demo.py", line 134, in
im_right_data.data.resize_(img_right.size()).copy_(img_right)
RuntimeError: set_sizes_contiguous is not allowed on a Tensor created from .data or .detach().
If your intent is to change the metadata of a Tensor (such as sizes / strides / storage / storage_offset)
without autograd tracking the change, remove the .data / .detach() call and wrap the change in a with torch.no_grad(): block.
For example, change:
x.data.set_(y)
to:
with torch.no_grad():
x.set_(y)
I have changed line 133
_ im_info.data.resize_(info.size()).copy_(info)
to
im_info.resize_(info.size()).copy_(info)
_
Now error is
cannot connect to X server
The text was updated successfully, but these errors were encountered:
I found solution.
You have to change line 133 ~ 135
im_left_data.**data.**resize_(img_left.size()).copy_(img_left)
im_right_data.**data.**resize_(img_right.size()).copy_(img_right)
im_info.**data.**resize_(info.size()).copy_(info)
to
im_left_data.resize_(img_left.size()).copy_(img_left)
im_right_data.resize_(img_right.size()).copy_(img_right)
im_info.resize_(info.size()).copy_(info)
just erase .data
Error:
load checkpoint models_stereo/stereo_rcnn_12_6477.pth
load model successfully!
Traceback (most recent call last):
File "demo.py", line 134, in
im_right_data.data.resize_(img_right.size()).copy_(img_right)
RuntimeError: set_sizes_contiguous is not allowed on a Tensor created from .data or .detach().
If your intent is to change the metadata of a Tensor (such as sizes / strides / storage / storage_offset)
without autograd tracking the change, remove the .data / .detach() call and wrap the change in a
with torch.no_grad():
block.For example, change:
x.data.set_(y)
to:
with torch.no_grad():
x.set_(y)
I have changed line 133
_ im_info.data.resize_(info.size()).copy_(info)
to
im_info.resize_(info.size()).copy_(info)
_
Now error is
cannot connect to X server
The text was updated successfully, but these errors were encountered: