Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookbook running the jupyter notebook (on Windows) #12

Closed
hilsonp opened this issue Jun 3, 2023 · 0 comments
Closed

Cookbook running the jupyter notebook (on Windows) #12

hilsonp opened this issue Jun 3, 2023 · 0 comments

Comments

@hilsonp
Copy link

hilsonp commented Jun 3, 2023

Hello,
I just tried to run the jupyter notebook but, at first, it didn't seem to work as expected.

I'm running this on Windows to train on my own data.

Here is what I did:

  • pip install git+https://github.com/haverland/collectmeterdigits
  • pip install tensorflow
  • python3 -m collectmeterdigits --collect=solar_meter --days=3
  • I did sort out all images as asked
  • git clone haverland/Tenth-of-step-of-a-meter-digit
  • add my curated images in the collected/powermeter/emeter_c26 folder
  • pip install notebook
  • pip install opencv-python # Needed to avoid errors in the notebook
  • pip install tensorflow-model-optimization # Needed to avoid errors in the notebook
  • jupyter notebook dig_class100-s2.ipynb
  • click the play button until the end (or click the "double right arrow" to play it all at once).

It takes a while and while the notebook is running, the browser tab will show an hourglass.

At the end, I took the tflite generated in the output folder, uploaded it on my ai-on-the-edge device, changed the config to use it.

The result is awesome !!! This is so accurate !

Note: 2 things helped a lot as well:

  • Using a glue stick as light diffuser for the bright white led.
  • Ajust the position to avoid any need to rotate the image.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants