3
$\begingroup$

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 ?

$\endgroup$
  • $\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 '18 at 15:32
2
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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