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

when i run train_det_seg_OCID.py ,have error . Is there a problem with the dataset? #15

Open
scq6688 opened this issue Jul 30, 2022 · 0 comments

Comments

@scq6688
Copy link

scq6688 commented Jul 30, 2022

Traceback (most recent call last):
File "train_det_seg_OCID.py", line 487, in
main(parser.parse_args())
File "train_det_seg_OCID.py", line 458, in main
global_step=global_step, loss_weights=config["optimizer"].getstruct("loss_weights"))
File "train_det_seg_OCID.py", line 274, in train
losses, _, conf = model(**batch, do_loss=True, do_prediction=False)
File "/home/scq/anaconda3/envs/yuyi/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/scq/anaconda3/envs/yuyi/lib/python3.6/site-packages/torch/nn/parallel/distributed.py", line 619, in forward
output = self.module(*inputs[0], **kwargs[0])
File "/home/scq/anaconda3/envs/yuyi/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/scq/anaconda3/envs/yuyi/lib/python3.6/site-packages/GraspDetSeg_CNN-0.1.dev21+g980b761.d20220719-py3.6-linux-x86_64.egg/grasp_det_seg/models/det_seg.py", line 76, in forward
self.rpn_head, x, bbx, iscrowd, valid_size, training=self.training, do_inference=True)
File "/home/scq/anaconda3/envs/yuyi/lib/python3.6/site-packages/GraspDetSeg_CNN-0.1.dev21+g980b761.d20220719-py3.6-linux-x86_64.egg/grasp_det_seg/algos/fpn.py", line 94, in training
match = self.anchor_matcher(anchors, bbx, iscrowd, valid_size)
File "/home/scq/anaconda3/envs/yuyi/lib/python3.6/site-packages/GraspDetSeg_CNN-0.1.dev21+g980b761.d20220719-py3.6-linux-x86_64.egg/grasp_det_seg/algos/rpn.py", line 156, in call
iou_max, iou_idx = iou.max(dim=1)
RuntimeError: cannot perform reduction function max on tensor with no elements because the operation does not have an identity
Traceback (most recent call last):
File "/home/scq/anaconda3/envs/yuyi/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/scq/anaconda3/envs/yuyi/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/scq/anaconda3/envs/yuyi/lib/python3.6/site-packages/torch/distributed/launch.py", line 260, in
main()
File "/home/scq/anaconda3/envs/yuyi/lib/python3.6/site-packages/torch/distributed/launch.py", line 256, in main
cmd=cmd)
subprocess.CalledProcessError: Command '['/home/scq/anaconda3/envs/yuyi/bin/python3', '-u', 'train_det_seg_OCID.py', '--local_rank=0', '--log_dir=LOGDIR', '/home/scq/grasp_det_seg_cnn/grasp_det_seg/config/defaults/det_seg_OCID.ini', '/home/scq/grasp_det_seg_cnn/DATA/OCID_grasp/data_split']' returned non-zero exit status 1.

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

1 participant