Skip to content

RuntimeConnoisseurs/what-the-ohm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

what-the-ohm

A deep learning model to identify resistor bands.

General Idea / Limitations

This is my first attempt at a deep learning project and it didn't really go as I hoped.

The original idea was to build a model to identify both 4 and 5 band resistor bands. Once bands are identified, the resistor value could be calculated using band color and position.

In hindsight, this resistor calculation is difficult because of resistors in different orientations. For example, given a 4-band resistor with bands yellow, violet, orange, gold; What is the first band? Yellow or gold ? How would you be able to know given any arbitrary resistor?

The model also seemed to have trouble with training on both resistor types and performed much better when focused on either 4 or 5 band resistors.

I also probably didn't have enough data or variety in data to train the model very well. My dataset is pretty imbalanced as seen in notebooks/explore.ipynb.

Usage

train model - train.py

see notebooks/test-model.ipynb

Dataset

Images of 4 and 5 band resistors taken with USB microscope.

  • 67 values of 4 band resistors
  • 60 values of 5 band resistors
  • 1270 images in total

Dataset prepped and bundled using dataset.py. Dataset should be put in ./data/ to use for training model in train.py.

Finalized dataset hosted at https://www.kaggle.com/datasets/barrettotte/resistors

Development

# init environment
make env_init
conda activate what-the-ohm

References

About

A deep learning model to identify resistor bands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.2%
  • Other 0.8%