KidsWithTokens / MedSegDiff

Medical Image Segmentation with Diffusion Model
MIT License
979 stars 147 forks source link

use DDIM error #110

Open xupinggl opened 1 year ago

Issues-translate-bot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


Title: use NO error

xupinggl commented 1 year ago

segmentation_sample.py๏ผŒI want to use DDIM to speed up, added the following code, but it reports an error, hope to get an answer โ€œ--use_ddim True --timestep_respacing ddim250โ€

RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

LiuTingWed commented 10 months ago

File "/home/david/anaconda3/envs/py37tor181/lib/python3.7/site-packages/torch/cuda/streams.py", line 79, in record_event event.record(self) File "/home/david/anaconda3/envs/py37tor181/lib/python3.7/site-packages/torch/cuda/streams.py", line 154, in record super(Event, self).record(stream) RuntimeError: CUDA error: device-side assert triggered
Do you solve this question? I have same problem. I guess the author does not use DDIM before.

xupinggl commented 10 months ago

ย  ย  ๆ‚จๅฅฝ๏ผŒๆ‚จ็š„้‚ฎไปถๆˆ‘ๅทฒๆ”ถๅˆฐ๏ผŒๆˆ‘ไผšๅฐฝๅฟซๅ›žๅค็š„๏ผŒ่ฐข่ฐข๏ผ

Issues-translate-bot commented 10 months ago

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


โ€‹ โ€‹ Hello, I have received your email and I will reply as soon as possible, thank you!