mazurowski-lab / segmentation-guided-diffusion

[MICCAI 2024] Easy diffusion models (optionally with segmentation guidance) for medical images and beyond.
https://arxiv.org/abs/2402.05210
Other
108 stars 5 forks source link

problem with unsatisfactory sampling result #16

Open MaybeRichard opened 14 hours ago

MaybeRichard commented 14 hours ago

I've read some issues and I met the same problem with unsatisfactory sampling result, such as a lot of noisy in the result. Currently, I'm using DDIM as scheduler and I'm trying to change to DDPM. The dataset i'm using only have 110 paired images and masks and I also tried other models like SPADE, Retree, LDM etc and they all have the same problem. I'm not sure if it is the problem with the size of dataset, so can I discuss with you about this problem?

I also tried other solution to improve the sampling result:

that's all I've tried and I think this is meaningful because there is a lot of domain lack of enough labeled dataset.

Looking forward to your reply and thanks for your contribution for medical imageing filed!

Sampling Image 1
Figure 1: Sampling Image
Real Image 1
Figure 2: Real Image
nickk124 commented 8 hours ago

Hello,

Unfortunately, your issue likely is the small dataset size, especially because you're facing the same problems with other models. (I'm assuming you mean 110 2D images, not many more 2D images taken from 110 3D volumes.) In our experiments, the training sets had at least a few thousand images + masks.

It looks like you're working with OCT images. As you alluded to, one option which may work for you could be to:

  1. pretrain an LDM autoencoder on a bunch of unlabeled OCT images from some other dataset (I know there are larger public OCT datasets out there)
  2. With the autoencoder trained, train the LDM itself conditioned on masks with your smaller training set.

The assumption here is that with a good latent representation learned from the larger dataset, it hopefully may require fewer examples to learn the mask conditioning.

I hope that was helpful!