- TypeError: ‘module’ object is not subscriptable
- RuntimeError: merge_sort: failed to synchronize: an illegal memory access was encountered
- RuntimeError: CUDA out of memory. Tried to allocate 322.00 MiB (GPU 0; 10.91 GiB total capacity; 8.62 GiB already allocated; 278.00 MiB free; 766.86 MiB cached)IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number .data[0]->.item()
- TypeError: can’t convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
- predict.data.numpy()->predict.data.cpu().numpy()
- RuntimeError: Error(s) in loading state_dict for CrowdCounter: Missing key(s) in state_dict: "CCN.de_pred.0.conv.bias
net.load_state_dict(torch.load(model_path),strict=False) add strict=False - THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1525796793591/work/torch/lib/THC/generic/THCStorage.c line=82 error=2 : out of memory ->cuda memory used off
odd_errors(持续更新,欢迎补充,工程中遇到的错误)
最新推荐文章于 2024-04-27 15:49:10 发布