Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad results on medical images #24

Open
mlszy928 opened this issue Jun 6, 2023 · 4 comments
Open

Bad results on medical images #24

mlszy928 opened this issue Jun 6, 2023 · 4 comments

Comments

@mlszy928
Copy link

mlszy928 commented Jun 6, 2023

I run the default code and achieved satisfactory results on Cifar10, but when I train the model on 2d CT images, the generated images are almost white or black by the model after 50 epoches.
image

@zoubohao
Copy link
Owner

zoubohao commented Jun 6, 2023

Hi

I think this issue is because your data is 2d CT images. In CIFAR-10 dataset, the channel of these images is 3.
You can 1. convert the 2d CT images to 3 channel or 2. change the code to fit your task.

Notice:
This code is suitable for learning the processing of DDPM but may not be a good repo to do some engineering tasks.

Good luck.

@mlszy928
Copy link
Author

mlszy928 commented Jun 6, 2023

Thank you for reply
I have already converted the CT images to 3 channels... Maybe I should change the code for medical images.

@yangfar
Copy link

yangfar commented Aug 10, 2023

I run the default code and achieved satisfactory results on Cifar10, but when I train the model on 2d CT images, the generated images are almost white or black by the model after 50 epoches. image

Excuse me, have you found some DDPMs suitable for 1D or 2D data?

@ming-transfer
Copy link

Excuse me, I also want to know that DDPM is suitable for 1D signal ?is there some bro can tell me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants