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

[Bug] faster rcnn示例demo运行失败 #162

Open
julinfn opened this issue Jul 4, 2023 · 1 comment
Open

[Bug] faster rcnn示例demo运行失败 #162

julinfn opened this issue Jul 4, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@julinfn
Copy link

julinfn commented Jul 4, 2023

Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1044417757]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1043999828]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1038362748]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1028488216]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1041107507]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1038512690]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1025719731]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1062530930]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1046412433]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1040383832]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1037096216]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1052784226]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1050774087]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1043101528]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1038468011]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1042905369]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1041904647]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1056778009]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1034192824]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1046018282]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1037947415]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1029079965]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1030685376]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1039469801]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1046026074]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1026127552]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1038185411]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1039719342]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1046856767]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1031351458]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1037857740]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1052852273]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1043838258]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1027262336]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1041238806]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1026994516]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1028472681]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1029024146]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1043505363]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1042091129]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1047327143]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1029984309]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1031696397]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1026858712]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1042069315]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1042087329]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1041296117]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1053384985]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1039710912]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1067889639]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1028286762]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1039959388]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1040023678]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1057672049]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1043497574]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1058031812]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1026028437]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1043121965]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1039394453]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1026286999]
Error: ../paddle/phi/kernels/funcs/scatter.cu.h:66 Assertion scatter_i >= 0 failed. The index is out of bounds, please check whether the dimensions of index and input meet the requirements. It should be greater than or equal to
0, but received [-1026556020]
Traceback (most recent call last):
File "e:\git\paddle\PaddleRS\need\faster_rcnn.py", line 75, in
model.train(
File "e:\git\paddle\PaddleRS\need\paddlers\tasks\object_detector.py", line 350, in train
return self._real_train(**args)
File "e:\git\paddle\PaddleRS\need\paddlers\tasks\object_detector.py", line 454, in _real_train
self.train_loop(
File "e:\git\paddle\PaddleRS\need\paddlers\tasks\base.py", line 402, in train_loop
outputs = self.train_step(step, data, net, optimizer)
File "e:\git\paddle\PaddleRS\need\paddlers\tasks\base.py", line 788, in train_step
outputs = self.run(net, data, mode='train')
File "e:\git\paddle\PaddleRS\need\paddlers\tasks\object_detector.py", line 157, in run
net_out = net(inputs)
File "D:\profProgram\python3912\lib\site-packages\paddle\fluid\dygraph\layers.py", line 930, in call
return self._dygraph_call_func(*inputs, **kwargs)
File "D:\profProgram\python3912\lib\site-packages\paddle\fluid\dygraph\layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "e:\git\paddle\PaddleRS\need\paddlers\models\ppdet\modeling\architectures\meta_arch.py", line 60, in forward
out = self.get_loss()
File "e:\git\paddle\PaddleRS\need\paddlers\models\ppdet\modeling\architectures\faster_rcnn.py", line 112, in get_loss
rpn_loss, bbox_loss = self._forward()
File "e:\git\paddle\PaddleRS\need\paddlers\models\ppdet\modeling\architectures\faster_rcnn.py", line 80, in _forward
rois, rois_num, rpn_loss = self.rpn_head(body_feats, self.inputs)
File "D:\profProgram\python3912\lib\site-packages\paddle\fluid\dygraph\layers.py", line 930, in call
return self._dygraph_call_func(*inputs, **kwargs)
File "D:\profProgram\python3912\lib\site-packages\paddle\fluid\dygraph\layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "e:\git\paddle\PaddleRS\need\paddlers\models\ppdet\modeling\proposal_generator\rpn_head.py", line 143, in forward
loss = self.get_loss(scores, deltas, anchors, inputs)
File "e:\git\paddle\PaddleRS\need\paddlers\models\ppdet\modeling\proposal_generator\rpn_head.py", line 281, in get_loss
pos_ind = paddle.nonzero(pos_mask)
File "D:\profProgram\python3912\lib\site-packages\paddle\tensor\search.py", line 402, in nonzero
outs = _C_ops.where_index(x)
OSError: (External) CUDA error(719), unspecified launch failure.
[Hint: 'cudaErrorLaunchFailure'. An exception occurred on the device while executing a kernel. Common causes include dereferencing an invalid device pointerand accessing out of bounds shared memory. Less common cases can be syst system specific - more information about these cases canbe found in the system specific user guide. This leaves the process in an inconsistent state and any further CUDA work willreturn the same error. To continue using CUDA proc, the process must be terminated and relaunched.] (at ..\paddle\phi\backends\gpu\cuda\cuda_info.cc:251)
[operator < where_index > error]

  1. PaddleRS版本:develop分支
  2. PaddlePaddle版本:2.3.1.post112
  3. 操作系统信息:win10
  4. Python版本号:3.9.12
  5. CUDA/cuDNN版本:CUDA11.2/cuDNN 8.1
@julinfn julinfn added the bug Something isn't working label Jul 4, 2023
@github-actions github-actions bot added the triage new issue/PR waiting to be dealed label Jul 4, 2023
@Bobholamovic
Copy link
Member

你好,建议检查一下类别数是否设置正确。例如,数据集标签的label是否可能大于等于总类别数。

@github-actions github-actions bot removed the triage new issue/PR waiting to be dealed label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants