Hyperparameter for grascale image training. #8020
Replies: 1 comment
-
@harufumigithub the issue you're facing is not uncommon when converting RGB images to grayscale for classification tasks. The conversion process can obscure certain features that were originally distinguishable by color, leading to a loss of information that can be critical for accurate classification. Here are some suggestions to address the bias and improve your model's performance:
Before committing to lengthy training periods, it's advisable to perform quick experiments with a subset of your data to validate the effectiveness of these strategies. This iterative approach can help you identify the most promising solutions without investing excessive time and resources. |
Beta Was this translation helpful? Give feedback.
-
I am working on a project to classify biomedical conditions from a set of images. Although the input images are all in grayscale, they possess distinct shape features. Originally, these images were captured in RGB but were converted to grayscale to simplify the problem. Our approach involves using segmentation to train the model on these images.
However, we are encountering a challenge where the model exhibits bias towards specific shades of grayscale. It appears that objects with identical features but varying colors (in their original RGB format) are not recognized as belonging to the same class after conversion to grayscale. This issue persists despite adjustments to various hyperparameters.
We suspect that the model's bias might be related to how the grayscale conversion process affects the visibility of certain features, particularly for objects originally in red hues. To address this, we have experimented with augmenting the images in the HSV (Hue, Saturation, Value) color space, but the outcomes have not been satisfactory. Below are the HSV augmentation parameters we have utilized:
Given this context, I am seeking recommendations on which hyperparameters might be effectively adjusted to mitigate this bias, along with reasonable values for these parameters. Any insights or suggestions from your experiences would be immensely valuable. We plan to try out hsv_s: 0.0 and hsv_v: 100 but would like your input first before committing lengthy training period.
Thank you in advance for your assistance.
Beta Was this translation helpful? Give feedback.
All reactions