Sandwhich
A Machine Learning App for an Age-Old Debate. Coming April 1st 2019.
Install / Use
/learn @MotionMobs/SandwhichREADME
Sandwhich
Sandwhich is a mobile app built to solve the sandwich debate by determining if the picture you've taken is a sandwich using machine learning, Flutter, and TensorFlow Lite.
Available on Google Play and the App Store
Screenshots
<img src="./media/animated.gif" width="200" /><img src="./media/ss.png" width="200" /><img src="./media/ss2.png" width="200" /><img src="./media/ss3.png" width="200" />
Built With
- Flutter Packages
- Flare by 2Dimensions
- Link to our flare file 🤷♂️
- Google Fonts
Getting Started
Building from Source
Clone the repository
git clone https://github.com/MotionMobs/Sandwhich
cd Sandwhich
Run Sandwhich
flutter run
Train Your Model/ How To 🚋 Your 🥪
To train your 🥪, you need to install Docker and ImageMagick.
brew update && brew install imagemagick
Set up file structure for your images
training_images
│ ├── input
│ │ ├── not-sandwich
│ │ │ ├── processed # processed not-sandwich images
│ │ │ └── unprocessed # original, not yet processed not-sandwich images
│ │ ├── sandwich
│ │ │ ├── processed # processed sandwich imagess
│ │ │ └── unprocessed # original, not yet processed sandwich images
│ ├── output # ready for model
│ │ ├── not-sandwich # minimum 20 images to train
│ │ └── sandwich # minimum 20 images to train
└──
Once original images are loaded into the folders, as described above, process the images
cd training_images
./conversion.sh
After all images have been processed we need to build the Docker image, run the script to retrain the model, and run the script to convert the retrained model to a .tflite model we can use in the app.
Go back to the root of the project and run:
cd -
./train.sh
Prepare to wait a while.
Testing
To test the new model, run ./test_model.sh $IMAGE_PATH where $IMAGE_PATH is any path to an image you want to test with. For convenience, you can even drag an image into the terminal to have its path placed at the end of whatever is currently in the terminal.
- When ready to use the new model, move it to the assets folder and overwrite the old model. Backup old model if desired.
- Run the app, find some sandwiches, and enjoy!
To release on Android:
flutter build apk --target-platform android-arm64
Team
<a href='https://motionmobs.com'><img alt='MotionMobs Website' src='./media/mm.png' height='50'/></a>
Credits
Sandwhich icon was created by Chad Remsing from the Noun Project
Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
398Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
