StanfordMIMI / DDM2

[ICLR2023] Official repository of DDM2: Self-Supervised Diffusion MRI Denoising with Generative Diffusion Models
140 stars 21 forks source link

AttributeError: Can't pickle local object 'MRIDataset.__init__.<locals>.<lambda>' #15

Open whiteYi opened 1 year ago

whiteYi commented 1 year ago

Hi, Thank you for your contribution about DDM2. I encountered the following problem when running the first step of the code. Can you help me look at it? image

whiteYi commented 1 year ago

The parameter at 'num_work' value is 0, but it has error in multi-progress.And the train was beganing two epoch. image

whiteYi commented 1 year ago

The problem seem to be sovled. As shown in the picture, just change the value of 'num_works' here to 0. image

whiteYi commented 1 year ago

Hi, I wanna to verify some details about code. I encounte a error when i run the ’denoise.py‘. The code cannot find attribute ’Y‘ from 'visuals', but it has attribute 'X'. Do I need to change ’Y‘ to 'X'? I will be very appreciated if you could give me an early reply. image

tiangexiang commented 1 year ago

Hi, sorry I just saw your messages! This should be 'X', representing the input noisy image. Sorry for the typo!

whiteYi commented 1 year ago

OK, Thanks for your reply. I just wish the code correctness can be ensured after changing!