Skip to content

Navigation Menu

Sign in
Sign up
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Using RandSpatialCrop or RandCropByPosNegLabel for training diffusion model #463

Unanswered
ahxmeds asked this question in Q&A
Discussion options

Is it currently possible to use the MONAI transforms RandSpatialCrop or RandCropByPosNegLabel to train diffusion model from MONAI GenerativeModels? I can understand one can train using this transform on the training set (so we don't have to downsample the images that leads to image feature degradation), but then how will one apply the diffusion model during validation/inference? And which validation metric should be tracked (does MSE still make sense if I use the RandCrop transforms on validation set but the crop in each epoch from the same image is going to be different)?

You must be logged in to vote

Replies: 1 comment

Comment options

Hi,

Yes, this is possible, but your samples from a whole volume won't be coherent as they'll be lots of patches stitched together. People do it if they're interested in partially noising and reconstruction for e.g. anomaly detection, see here.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /