![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误总结
文章平均质量分 58
Bingo
不爱串门的老王
展开
-
RuntimeError: stack expects each tensor to be equal size
在调试densenet进行分类任务的代码时,在图像预处理的过程中遇到下列错误:RuntimeError: stack expects each tensor to be equal size, but got [640, 640] at entry 0 and [560, 560] at entry 2意思是我加载的张量大小不一致。经过查找发现应该是我在加载图像时的预处理过程中出现了问题。以下是训练数据预处理的实例化部分。train_transform = Compose( [原创 2021-10-22 09:32:40 · 23244 阅读 · 1 评论 -
提取ROI时的错误 Requested region is (at least partially) outside the largest possible region.
@[TOC](提取ROI时的错误 Requested region is (at least partially) outside the largest possible region.)当我使用SimpleITK提取图像的ROI区域时,遇到如下错误:Traceback (most recent call last):File “D:/Examples/prostate_Segmentation/crop_prostate_region.py”, line 56, in prostate_img_原创 2021-04-27 09:14:24 · 1055 阅读 · 1 评论 -
dyn_unet训练过程中的错误
网络训练错误总结1.AssertionError: ground truth has different shape (torch.Size([2, 2, 128, 128, 32])) from input (torch.Size([3, 2, 128, 128, 32]))1.AssertionError: ground truth has different shape (torch.Size([2, 2, 128, 128, 32])) from input (torch.Size([3, 2,原创 2021-04-25 10:53:43 · 840 阅读 · 0 评论