MedSegDiff
MedSegDiff copied to clipboard
Sampling problem
When I ran sample.py , I got this problem:
Traceback (most recent call last):
File "F:\dpm\MedSegDiff-master-v2\v2\scripts\segmentation_sample.py", line 194, in
My Brats2020 dataset is the same as yours, but my testing data has ground truth. I can't figure it out, can you please help me with it?
I also meet this problem. I think it's because your "x_t".shape(B, 1, H, W) is not the same as the "eps".shape(B, 2, H, W). You set the output of the model in "script_util" to 2, so the eps".shape will to be(B, 2, H, W).
我也遇到了这个问题。我认为这是因为您的“x_t”.shape(B, 1, H, W) 与“eps”.shape(B, 2, H, W) 不同。您将“script_util”中模型的输出设置为 2,因此 eps“.shape 将为 (B, 2, H, W)。
Hello, I've also encountered this issue. I'd like to ask you specifically which parameter you modified in the "script_util" file, or which line of code you changed to resolve this problem? Can you help me with that?
我也遇到了这个问题。我认为这是因为您的“x_t”.shape(B, 1, H, W) 与“eps”.shape(B, 2, H, W) 不同。您将“script_util”中模型的输出设置为 2,因此 eps“.shape 将为 (B, 2, H, W)。
Hello, I've also encountered this issue. I'd like to ask you specifically which parameter you modified in the "script_util" file, or which line of code you changed to resolve this problem? Can you help me with that?
你好,请问你解决了吗