vision/pc_vision/models/teachable/README.md

21 lines
833 B
Markdown
Raw Permalink Normal View History

# Teachable Machine export folder
#
# Collect samples in the viewer first (Class + Save sample / P key),
# then upload pc_vision/samples/Ball and .../Background into TM classes.
#
# 1. Go to https://teachablemachine.withgoogle.com/ → Image Project
# 2. Create classes, e.g. "Ball" and "Background"
# 3. Train, then Export Model → Tensorflow → Keras
# 4. Unzip and copy these two files into THIS folder:
# keras_model.h5
# labels.txt
# 5. In the viewer: Method → Teachable Machine (or click Load TM model…)
#
# Tips for kids workshops:
# - Take 3050 photos of the ball from different angles / distances
# - Take 3050 background photos of the floor / room without the ball
# - Retrain whenever lighting or the ball changes, then overwrite these files
#
# Needs: pip install tensorflow (or tensorflow-cpu)