please follow https://www.tensorflow.org/get_started/ for Tensorflow installation guide
The installation option used in this project is virtual environment
-
activate the environment by
$ source ./bin/activate -
Run the estimator
$ python premade_estimator.py
- Source code is found in
/src - training data is found in
/data
The datasets are obtained from https://github.com/garythung/trashnet
-
First attempt: convert
premade_estimator.pyto accept our own jpg. However the data loaded into the scripts are already vectors. Hence I need to find a way to convert jpg into vectors -
cnn_mnist.pyis the example of mnist. However their image format is unknow. This is what happens when you use untyped language. No one knows what's going on and the original developer has already left the company. -
I'm looking for the guide to convert jpg images to vectors that tf can accept. also need to know how to label them and load a bunch of them sequentially.
-
coming very close to getting some image processed
-
I manage to convert something at
/data/out. But I don't know what I have converted there. It's from the guide at https://github.com/tensorflow/models/blob/master/research/inception/README.md#how-to-construct-a-new-dataset-for-retraining
- Found this https://github.com/gskielian/JPG-PNG-to-MNIST-NN-Format that claims to transform custom images into mnist-like data file for input