Example GUI for Command line capable machine learning programs
This is an example GUI made in PysimpleGUI and Tkinter, mainly for machine learning programs that lacks simple yet proper GUI. you only need a couple of simple python scripts with minimal requirements.
It supports:
- Multiple file selection and evaluation
- Re-rendering without reevaluation
- Saving evaluated results
- Tiny output dialog, useful for debugging and not recreating text out dialog
- (Naturally) any ML programs you made in python.
Installation
-
Clone this repository, or copy all python files to your desired repository.
-
install
PySimpleGUI
, along with other required libraries using pip. you neednumpy
,Pillow
,matplotlib
, andPySimpleGUI
.pip install -r requirements.txt
-
change content in
main.py
to plug in your ML program into GUI. You do not needevaluate.py
after modification, since what it does is give you some example about how things work.
Running
python main.py
Please check main.py
and evaluate.py
for how things work. evaluate.py
contains stub evaluator without any 'Evaluation', so technically no Tensorflow / Keras / PyTorch is required.
In video
Copyrights
This repository follows MIT License. check LICENSE and license at the sidebar for more information. You can also buy me a beer if you think it is worth it.
While this repository DOES NOT CONTAIN ANY OF THE LIBRARY CODE BELOW, I think it is great idea to acknowledge the great developers of FOSS libraries.
-
Matplotlib: Matplotlib Development Team. https://matplotlib.org/stable/users/project/license.html
-
Pillow: Copyright © 2010-2021 by Alex Clark and contributors. https://raw.githubusercontent.com/python-pillow/Pillow/master/LICENSE
-
Numpy: Copyright (c) 2005-2021, NumPy Developers. https://github.com/numpy/numpy/blob/main/LICENSE.txt
-
PySimpleGUI: © Copyright 2021 PySimpleGUI, https://github.com/PySimpleGUI/PySimpleGUI/blob/master/license.txt
For example images:
- Water_droplets_on_leaf.jpg: Siddharth Patil, CC0, via Wikimedia
- Weidmoos 1.jpg: Werner100359, CC0, via Wikimedia Commons