TextZoom icon indicating copy to clipboard operation
TextZoom copied to clipboard

"index_select_out_cuda_impl" not implemented for 'Float'

Open seogihyun opened this issue 3 years ago • 3 comments

Hi, I tried to execute demo version.

python3 main.py --demo --demo_dir='dataset' --resume='model_best.pth' --STN --mask

But there is one issue.

1

So, first I found the same issue in this github like this. 캡처

But when I try to execute like that, there was another issue. I think the problem is torch version with cudnn. So please let me know how to solve this problem.

Thank you.

seogihyun avatar Aug 30 '21 01:08 seogihyun

maybe you can try to change the data type of that tensor. image

E-qin avatar Jun 14 '22 10:06 E-qin

I find this problem too.

Everythingismetaphor avatar Mar 19 '23 05:03 Everythingismetaphor

maybe you can try to change the data type of that tensor. image

you can use this method from @E-qin to ensure predecessors is type of 'torch.long()' or simply correct the devision operator (/) into floor devision operator (//):

predecessors = (candidates / selfl.num_classes .... -> predecessors = (candidates // selfl.num_classes ....

LuThanhThien avatar Nov 20 '23 10:11 LuThanhThien