I have a rgb image , I am building a cnn from scratch , not using imagenet. Is it still…
- User
I have a rgb image , I am building a cnn from scratch , not using imagenet. Is it still fine for me to use imagenet means for normalisation? batch_data[folder,idx,:,:,0] = resized_image[:,:,0] - 104 batch_data[folder,idx,:,:,1] = resized_image[:,:,1] - 117 batch_data[folder,idx,:,:,2] = resized_image[:,:,2] - 123
Assistant
Yes, it is still fine for you to use ImageNet mean values for normalization even if you are not using pre-trained ImageNet weights. The purpose of normalization in this case is to center the data around zero and reduce its variance, which can help improve the training of your CNN.
The ImageNet mean values you mentioned (104 for red, 117 for green, and 123 for blue channels) are widely used because they represent the average pixel intensity values of the ImageNet dataset, which is a large and diverse dataset of natural images. By subtracting these mean values from your RGB image data, you are effectively centering the data around zero.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.