Zyun-Y / DconnNet

Codes for CVPR2023 paper "Directional Connectivity-based Segmentation of Medical Images"
138 stars 7 forks source link

使用ISIC产生的RuntimeError #35

Closed LYC123080 closed 3 weeks ago

LYC123080 commented 3 months ago

G:\soft\Ano\envs\test1\python.exe G:\code\DconnNet-main\train.py Train batch number: 182 Test batch number: 518 Petrain Model Have been loaded! START TRAIN. Selected optimization level O2: FP16 training with FP32 batchnorm and FP32 master weights.

Defaults for this optimization level are: enabled : True opt_level : O2 cast_model_type : torch.float16 patch_torch_functions : False keep_batchnorm_fp32 : True master_weights : True loss_scale : dynamic Processing user overrides (additional kwargs that are not None)... After processing overrides, optimization options are: enabled : True opt_level : O2 cast_model_type : torch.float16 patch_torch_functions : False keep_batchnorm_fp32 : True master_weights : True loss_scale : dynamic Warning: multi_tensor_applier fused unscale kernel is unavailable, possibly because apex was installed without --cuda_ext --cpp_ext. Using Python fallback. Original ImportError was: ModuleNotFoundError("No module named 'amp_C'") G:\soft\Ano\envs\test1\lib\site-packages\torch\nn\functional.py:1639: UserWarning: nn.functional.sigmoid is deprecated. Use torch.sigmoid instead. warnings.warn("nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.") torch.Size([10, 8, 224, 320]) C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [32,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [33,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [34,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [35,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [36,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [37,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [38,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [39,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [40,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [41,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [42,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [43,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [44,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [45,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [46,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [47,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [48,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [49,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [50,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [51,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [52,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [53,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [54,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [55,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [56,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [57,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [58,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [59,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [60,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [61,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [62,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [38,0,0], thread: [63,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [0,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [1,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [2,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [3,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [4,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [5,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [6,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [7,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [8,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [9,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [10,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [11,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [12,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [13,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [14,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [15,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [16,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [17,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [18,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [19,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [20,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [21,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [22,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [23,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [24,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [25,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [26,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [27,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [28,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [29,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [30,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [40,0,0], thread: [31,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [32,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [33,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [34,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [35,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [36,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [37,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [38,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [39,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [40,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [41,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [42,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [43,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [44,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [45,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [46,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [47,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [48,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [49,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [50,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [51,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [52,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [53,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [54,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [55,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [56,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [57,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [58,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [59,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [60,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [61,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [62,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [65,0,0], thread: [63,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [32,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [33,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [34,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [35,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [36,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [37,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [38,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [39,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [40,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [41,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [42,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [43,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [44,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [45,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [46,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [47,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [48,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [49,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [50,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [51,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [52,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [53,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [54,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [55,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [56,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [57,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [58,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [59,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [60,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [61,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [62,0,0] Assertion input_val >= zero && input_val <= one failed. C:/cb/pytorch_1000000000000/work/aten/src/ATen/native/cuda/Loss.cu:102: block: [10,0,0], thread: [63,0,0] Assertion input_val >= zero && input_val <= one failed. Traceback (most recent call last): File "G:\code\DconnNet-main\train.py", line 154, in main(args) File "G:\code\DconnNet-main\train.py", line 150, in main solver.train(model, train_loader, val_loader,exp_id+1, num_epochs=args.epochs) File "G:\code\DconnNet-main\solver.py", line 148, in train loss_aux = self.loss_func(aux_out, y) File "G:\soft\Ano\envs\test1\lib\site-packages\torch\nn\modules\module.py", line 727, in _call_impl result = self.forward(*input, *kwargs) File "G:\code\DconnNet-main\connect_loss.py", line 171, in forward loss = self.single_class_forward(c_map, target) File "G:\code\DconnNet-main\connect_loss.py", line 237, in single_class_forward con_target = connectivity_matrix(target,self.args.num_class)#(B, 8, H, W) File "G:\code\DconnNet-main\connect_loss.py", line 23, in connectivity_matrix conn = torch.zeros([batch,class_num8,rows, cols]).cuda() RuntimeError: CUDA error: device-side assert triggered

Process finished with exit code 1

Please ask the cause of this problem and how to solve it

Zyun-Y commented 3 weeks ago

Please check your loss input range. The logit value should be between [0, 1].