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

RuntimeError: _th_or not supported on CUDAType for Bool #67

Open
tangtangqin opened this issue May 20, 2020 · 1 comment
Open

RuntimeError: _th_or not supported on CUDAType for Bool #67

tangtangqin opened this issue May 20, 2020 · 1 comment

Comments

@tangtangqin
Copy link

On ubuntu16.04, cuda9.0, there is a running error, do not know how to modify it?
Traceback (most recent call last):
File "tools / train_net.py", line 173, in
main ()
File "tools / train_net.py", line 166, in main
model = train (cfg, args.local_rank, args.distributed)
File "tools / train_net.py", line 76, in train
cfg,
File "/home/f5100/MaskTextSpotter/maskrcnn_benchmark/engine/trainer.py", line 66, in do_train
loss_dict = model (images, targets)
File "/home/f5100/anaconda3/envs/masktextspotter/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward (* input, ** kwargs)
File "/home/f5100/MaskTextSpotter/maskrcnn_benchmark/modeling/detector/generalized_rcnn.py", line 52, in forward
x, result, detector_losses = self.roi_heads (features, proposals, targets)
File "/home/f5100/anaconda3/envs/masktextspotter/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward (* input, ** kwargs)
File "/home/f5100/MaskTextSpotter/maskrcnn_benchmark/modeling/roi_heads/roi_heads.py", line 23, in forward
x, detections, loss_box = self.box (features, proposals, targets)
File "/home/f5100/anaconda3/envs/masktextspotter/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward (* input, ** kwargs)
File "/home/f5100/MaskTextSpotter/maskrcnn_benchmark/modeling/roi_heads/box_head/box_head.py", line 42, in forward
proposals = self.loss_evaluator.subsample (proposals, targets)
File "/home/f5100/MaskTextSpotter/maskrcnn_benchmark/modeling/roi_heads/box_head/loss.py", line 104, in subsample
img_sampled_inds = torch.nonzero (pos_inds_img | neg_inds_img) .squeeze (1)
RuntimeError: _th_or not supported on CUDAType for Bool

@MhLiao
Copy link
Owner

MhLiao commented Jun 15, 2020

@tangtangqin I think this is related to the Pytorch version.

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

2 participants