Poetry must be installed to run myHealth!
- Install poetry. Link to instructions.
- Intialize virtual environment.
poetry shell
- Install dependencies.
poetry install
- Run
python myhealth/myHealth.py path/to/image.jpeg
- If you don't have an image and want to try out a demo, you may run the following command:
python myhealth/myHealth.py path/to/image.jpeg
- You will still need to install poetry.
- After you install poetry, you may install the dependencies with the following cmd:
make install - Run a demo with the following cmd:
make run_demo
- The
datadirectory contains 2 NoSQL databases containing nutritional data. - One contains a great deal of nutritional information on a few foods.
- The other is a database that contains only a little nutritional data on around 4,800 foods.
- These databases are TinyDB databases.
- Link for more information on TinyDB
- The
modeldirectory contains:- Small CNN model used to classify images of food.
- Images of the performance of the model.
- A few images of foods to use for demos.
- The
myhealthdirectory contains the source code.
- The
testsdirectory contains unit tests.
- This is a file containing the dependencies and their versions that are capatible and stable.
- This file contains the metadata for myHealth.
poetry install
poetry add [package-name]
poetry shell
exit
poetry run [cmd]
- Like black or pytest.
poetry build
poetry publish
Typer is the tool we will use to create the CLI (command line interface).
- Used for development and demo purposes.
- Followed this tutorial (among a few others)
- Used this tutorial in particular to save and load the model.
