I am currently training a classifier for detecting resistors using TensorFlow Object Detection API. For that, I downloaded resistor images from ImageNet and I am currently labeling those who will be used for training.

However, I found two different kinds of resistors in my training images :

Common resistors with 4 strips to indicate the value Resistors with values written on it

I want to know if it's safe to put them under the same label or it would be better to classify them under two different labels so that the training will be more accurate ?

  • $\begingroup$ As far as i see the second image could have been a capacitor if one of the terminal was inverted $\endgroup$
    – DuttaA
    Jun 26, 2018 at 15:32

1 Answer 1


In general, you want to show your model all types of "resistors" it would see in the real world.

Is it feasible for you to manually go through your dataset and label each of these images as resistor A or resistor B? Do you care if your model can make this distinction? If the answer to either of these is no, I would just leave them all as one label and train the model. It's possible you don't have enough training data for your model to learn that these are different types of resistors, but you can evaluate that after you train.


Your Answer

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

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