OrientedRepPoints icon indicating copy to clipboard operation
OrientedRepPoints copied to clipboard

view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.

Open jimuIee opened this issue 8 months ago • 0 comments

Traceback (most recent call last): File "/home/lzk/mydata/anaconda3/envs/reppointobb/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/lzk/mydata/anaconda3/envs/reppointobb/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/lzk/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/main.py", line 39, in cli.main() File "/home/lzk/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main run() File "/home/lzk/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file runpy.run_path(target, run_name="main") File "/home/lzk/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path return _run_module_code(code, init_globals, run_name, File "/home/lzk/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code _run_code(code, mod_globals, init_globals, File "/home/lzk/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code exec(code, run_globals) File "/home/lzk/mydata/OrientedRepPoints-main/tools/train.py", line 154, in main() File "/home/lzk/mydata/OrientedRepPoints-main/tools/train.py", line 143, in main train_detector( File "/mnt/home/lzk/OrientedRepPoints-main/mmdet/apis/train.py", line 105, in train_detector _non_dist_train( File "/mnt/home/lzk/OrientedRepPoints-main/mmdet/apis/train.py", line 244, in _non_dist_train runner.run(data_loaders, cfg.workflow, cfg.total_epochs) File "/home/lzk/mydata/anaconda3/envs/reppointobb/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 122, in run epoch_runner(data_loaders[i], **kwargs) File "/home/lzk/mydata/anaconda3/envs/reppointobb/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 43, in train self.call_hook('after_train_iter') File "/home/lzk/mydata/anaconda3/envs/reppointobb/lib/python3.8/site-packages/mmcv/runner/base_runner.py", line 282, in call_hook getattr(hook, fn_name)(self) File "/home/lzk/mydata/anaconda3/envs/reppointobb/lib/python3.8/site-packages/mmcv/runner/hooks/optimizer.py", line 21, in after_train_iter runner.outputs['loss'].backward() File "/home/lzk/mydata/anaconda3/envs/reppointobb/lib/python3.8/site-packages/torch/_tensor.py", line 307, in backward torch.autograd.backward(self, gradient, retain_graph, create_graph, inputs=inputs) File "/home/lzk/mydata/anaconda3/envs/reppointobb/lib/python3.8/site-packages/torch/autograd/init.py", line 154, in backward Variable._execution_engine.run_backward( File "/home/lzk/mydata/anaconda3/envs/reppointobb/lib/python3.8/site-packages/torch/autograd/function.py", line 199, in apply return user_fn(self, *args) File "/home/lzk/mydata/anaconda3/envs/reppointobb/lib/python3.8/site-packages/torch/autograd/function.py", line 340, in wrapper outputs = fn(ctx, *args) File "/mnt/home/lzk/OrientedRepPoints-main/mmdet/ops/dcn/deform_conv.py", line 87, in backward deform_conv_cuda.deform_conv_backward_parameters_cuda( RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead. 请问一下跑hrsc数据集这里应该修改哪里

jimuIee avatar Nov 18 '23 09:11 jimuIee