栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

RuntimeError: expected backend CUDA and dtype Float but got backend CUDA and dtype Long

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

RuntimeError: expected backend CUDA and dtype Float but got backend CUDA and dtype Long

 

(btc) z@z2:~/wen/BtcDet-main$ python -m btcdet.datasets.multifindbestfit
ROOT_DIR /home/z/wen/BtcDet-main
iou3d torch.Size([28742, 28742])
coords_num torch.Size([28742]) tensor(0, device='cuda:0') tensor(354, device='cuda:0')
coord_inds torch.Size([12522])
best_iou_indices torch.Size([28742, 800]) pnt_thresh_best_iou_indices torch.Size([28742, 800]) 28742
pnt_thresh_best_iou_indices torch.Size([28742, 800])
Traceback (most recent call last):
  File "/home/z/anaconda3/envs/btc/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/z/anaconda3/envs/btc/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/z/wen/BtcDet-main/btcdet/datasets/multifindbestfit.py", line 494, in
    find_best_match_boxpnts(all_db_infos_lst, box_dims_lst, sorted_iou, pnt_thresh_best_iou_indices, mirrored_pnts_lst, pnts_lst, coords_num, occ_map, bm_dir_save_path, allrange, nx, ny, voxel_size, max_num_bm=max_num_bm_lst[i], num_extra_coords=num_extra_coords_lst[i], iou_thresh=iou_thresh_lst[i], ex_coords_ratio=ex_coords_ratio_lst[i], nearest_dist=nearest_dist_lst[i], vis=vis, save=save)
  File "/home/z/wen/BtcDet-main/btcdet/datasets/multifindbestfit.py", line 330, in find_best_match_boxpnts
    bm_pnts, bm_coords_num = find_multi_best_match_boxpnts(selected_sorted_iou, cur_box, cur_mirrored_pnts_lst, cur_pnts_lst, selected_mirrored_pnts_lst, selected_pnts_lst, selected_pnt_thresh_best_iou_indices, cur_occ_map, selected_occ_map, max_num_bm=max_num_bm, num_extra_coords=num_extra_coords, iou_thresh=iou_thresh, ex_coords_ratio=ex_coords_ratio, nearest_dist=nearest_dist, vis=vis)
  File "/home/z/wen/BtcDet-main/btcdet/datasets/multifindbestfit.py", line 388, in find_multi_best_match_boxpnts
    heuristic = max_instance + ex_coords_ratio / extra_coord_nums.unsqueeze(0) + (sorted_iou.unsqueeze(0) < iou_thresh) * 2.0  + (extra_coord_nums.unsqueeze(0) < 30) * 1.0 # mean_instance + 10. / extra_coord_nums + (sorted_iou < 0.84) * 1.0 #
RuntimeError: expected backend CUDA and dtype Float but got backend CUDA and dtype Long


求大神指导,有偿,谢谢

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/892971.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号