0
$\begingroup$

I have 30% blurred images in each classes. I have a total of 10 classes. I'm not allowed to drop these blurred images. How do I train the model to get better accuracy for both blurred and nonblurred training dataset ? Currently, I'm at 11% accuracy.

The images were blurred using a Gaussian blur.

I have used a Wiener filter, but not able to restore the image from blurred images.

Please can anyone suggest a good way to train the model.

$\endgroup$

2 Answers 2

1
$\begingroup$

I will suggest using data augmentation approaches to even out your data distributions. It will make your blurred images more usable to the model

The data distribution of 30% of your images deviates from the rest because they are blurred. Experiment with training using random blur with appropriate min-max ranges in the data augmentation pipeline (on the images that aren't blurred). This will help the model to smoothly generalize across blurred images. If you don't have labels of which images are blurred, use blur detection algorithms to determine a threshold after which you want to augment.

After doing this, it may be important that you do test-time data augmentation as well.

$\endgroup$
2
  • $\begingroup$ How do we apply random blur with min-max ranges for an image file? I haven't found any resources for that. $\endgroup$
    – MrRobot9
    Sep 16, 2020 at 17:52
  • $\begingroup$ If you're using PyTorch, you can use the albumentations library- The blur transform with blur_limit - albumentations.ai/docs/api_reference/augmentations/transforms $\endgroup$
    – Sid
    Sep 17, 2020 at 6:09
1
$\begingroup$

It would be helpful if you could add a bit more information, e.g. what problem you are solving. Assuming you are solving a classification problem, do these blurred images have any significance, e.g. are they uniformly distributed across classes? One thing that might help is adding some labels, for example in the input in the model. Normal images will have label $0$, blurred ones label $1$. In general, blurring is a legitimate way of transforming/augmenting the data. Another suggestion is that you can transform other images in the training data (not necessarily with Gaussian blur), to add variation.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.