How to implement supervised denoising using image translators
It is quite easy to run supervised denoising with image translators provided in Aydin API. You can see a quick example below using ImageTranslatorFGR:
from aydin.it.fgr import ImageTranslatorFGR
it = ImageTranslatorFGR()
it.add_transform(RangeTransform())
it.add_transform(PaddingTransform())
it.train(noisy, groundtruth)
denoised = it.translate(noisy)
Similar to ImageTranslatorFGR implementation, same can be achieved with ImageTranslatorCNN as shown below:
from aydin.it.cnn import ImageTranslatorCNN
it = ImageTranslatorCNN()
it.add_transform(RangeTransform())
it.add_transform(PaddingTransform())
it.train(noisy, groundtruth)
denoised = it.translate(noisy)