HuiZhang0812 / DiffusionAD

148 stars 16 forks source link

about dataset_beta_thresh.py and def perlin_synthetic #53

Closed boxbox2 closed 2 months ago

boxbox2 commented 3 months ago

"In this part, I noticed that perlin_synthetic seems to apply randAugmenter to anomaly_img, but the corresponding mask does not go through randAugmenter. Is this correct?"

So the mask and the corresponding composite image can still be correctly matched? image

HuiZhang0812 commented 2 months ago

The perlin_synthetic is able to synthesize the correct abnormal image. The randAugmenter is used to synthesize the abnormal appearance. After that, the mask extracts the corresponding area and combines it with the normal image to synthesize the abnormal image.