├── .gitignore ├── README.md ├── WORKSPACE ├── data-processing ├── img-pre │ ├── .gitignore │ ├── img_all.py │ └── img_pre.py ├── multithreading │ ├── file-queue │ │ ├── .gitignore │ │ ├── batching.py │ │ ├── proc_fx.py │ │ ├── read.py │ │ └── write.py │ └── queue-threading │ │ ├── coord.py │ │ ├── q.py │ │ └── qr.py └── tfrecord │ ├── .gitignore │ ├── read.py │ └── write.py ├── im2txt ├── .gitignore ├── BUILD ├── configuration.py ├── data │ ├── build_mscoco_data.py │ ├── download_and_preprocess_mscoco.sh │ ├── images │ │ └── 1.jpg │ └── word_counts.txt ├── evaluate.py ├── inference_utils │ ├── BUILD │ ├── caption_generator.py │ ├── caption_generator_test.py │ ├── inference_wrapper_base.py │ └── vocabulary.py ├── inference_wrapper.py ├── ops │ ├── BUILD │ ├── image_embedding.py │ ├── image_embedding_test.py │ ├── image_processing.py │ └── inputs.py ├── rename_ckpt.py ├── run.sh ├── run_inference.py ├── show_and_tell_model.py ├── show_and_tell_model_test.py └── train.py ├── lstm ├── nl-modeling │ ├── .gitignore │ ├── reader.py │ ├── reader_test.py │ └── train.py └── sin_pre │ ├── .gitignore │ └── train.py ├── mnist ├── .gitignore ├── best │ ├── eval.py │ ├── inference.py │ └── train.py ├── data │ ├── t10k-images-idx3-ubyte.gz │ ├── t10k-labels-idx1-ubyte.gz │ ├── train-images-idx3-ubyte.gz │ └── train-labels-idx1-ubyte.gz ├── lenet-5 │ ├── eval.py │ ├── inference.py │ └── train.py ├── mnist_all.py ├── mnist_cnn.py └── mnist_softmax.py ├── softmax └── softmax.py ├── transfer-learning ├── .gitignore ├── eval.py └── train.py └── visualization └── monitor ├── .gitignore └── train.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # tensorflow-practices 2 | 3 | TensorFlow的练习代码 4 | 5 | >由于各方原因,此仓库应该不会再更新,GitHub上有非常多的资源,建议大家多构造关键词进行搜索:) 6 | -------------------------------------------------------------------------------- /WORKSPACE: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data-processing/img-pre/.gitignore: -------------------------------------------------------------------------------- 1 | images/ -------------------------------------------------------------------------------- /data-processing/img-pre/img_all.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/data-processing/img-pre/img_all.py -------------------------------------------------------------------------------- /data-processing/img-pre/img_pre.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/data-processing/img-pre/img_pre.py -------------------------------------------------------------------------------- /data-processing/multithreading/file-queue/.gitignore: -------------------------------------------------------------------------------- 1 | data/ -------------------------------------------------------------------------------- /data-processing/multithreading/file-queue/batching.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/data-processing/multithreading/file-queue/batching.py -------------------------------------------------------------------------------- /data-processing/multithreading/file-queue/proc_fx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/data-processing/multithreading/file-queue/proc_fx.py -------------------------------------------------------------------------------- /data-processing/multithreading/file-queue/read.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/data-processing/multithreading/file-queue/read.py -------------------------------------------------------------------------------- /data-processing/multithreading/file-queue/write.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/data-processing/multithreading/file-queue/write.py -------------------------------------------------------------------------------- /data-processing/multithreading/queue-threading/coord.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/data-processing/multithreading/queue-threading/coord.py -------------------------------------------------------------------------------- /data-processing/multithreading/queue-threading/q.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/data-processing/multithreading/queue-threading/q.py -------------------------------------------------------------------------------- /data-processing/multithreading/queue-threading/qr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/data-processing/multithreading/queue-threading/qr.py -------------------------------------------------------------------------------- /data-processing/tfrecord/.gitignore: -------------------------------------------------------------------------------- 1 | record/ 2 | data/ -------------------------------------------------------------------------------- /data-processing/tfrecord/read.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/data-processing/tfrecord/read.py -------------------------------------------------------------------------------- /data-processing/tfrecord/write.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/data-processing/tfrecord/write.py -------------------------------------------------------------------------------- /im2txt/.gitignore: -------------------------------------------------------------------------------- 1 | model/ -------------------------------------------------------------------------------- /im2txt/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/BUILD -------------------------------------------------------------------------------- /im2txt/configuration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/configuration.py -------------------------------------------------------------------------------- /im2txt/data/build_mscoco_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/data/build_mscoco_data.py -------------------------------------------------------------------------------- /im2txt/data/download_and_preprocess_mscoco.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/data/download_and_preprocess_mscoco.sh -------------------------------------------------------------------------------- /im2txt/data/images/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/data/images/1.jpg -------------------------------------------------------------------------------- /im2txt/data/word_counts.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/data/word_counts.txt -------------------------------------------------------------------------------- /im2txt/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/evaluate.py -------------------------------------------------------------------------------- /im2txt/inference_utils/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/inference_utils/BUILD -------------------------------------------------------------------------------- /im2txt/inference_utils/caption_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/inference_utils/caption_generator.py -------------------------------------------------------------------------------- /im2txt/inference_utils/caption_generator_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/inference_utils/caption_generator_test.py -------------------------------------------------------------------------------- /im2txt/inference_utils/inference_wrapper_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/inference_utils/inference_wrapper_base.py -------------------------------------------------------------------------------- /im2txt/inference_utils/vocabulary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/inference_utils/vocabulary.py -------------------------------------------------------------------------------- /im2txt/inference_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/inference_wrapper.py -------------------------------------------------------------------------------- /im2txt/ops/BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/ops/BUILD -------------------------------------------------------------------------------- /im2txt/ops/image_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/ops/image_embedding.py -------------------------------------------------------------------------------- /im2txt/ops/image_embedding_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/ops/image_embedding_test.py -------------------------------------------------------------------------------- /im2txt/ops/image_processing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/ops/image_processing.py -------------------------------------------------------------------------------- /im2txt/ops/inputs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/ops/inputs.py -------------------------------------------------------------------------------- /im2txt/rename_ckpt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/rename_ckpt.py -------------------------------------------------------------------------------- /im2txt/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/run.sh -------------------------------------------------------------------------------- /im2txt/run_inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/run_inference.py -------------------------------------------------------------------------------- /im2txt/show_and_tell_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/show_and_tell_model.py -------------------------------------------------------------------------------- /im2txt/show_and_tell_model_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/show_and_tell_model_test.py -------------------------------------------------------------------------------- /im2txt/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/im2txt/train.py -------------------------------------------------------------------------------- /lstm/nl-modeling/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/lstm/nl-modeling/.gitignore -------------------------------------------------------------------------------- /lstm/nl-modeling/reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/lstm/nl-modeling/reader.py -------------------------------------------------------------------------------- /lstm/nl-modeling/reader_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/lstm/nl-modeling/reader_test.py -------------------------------------------------------------------------------- /lstm/nl-modeling/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/lstm/nl-modeling/train.py -------------------------------------------------------------------------------- /lstm/sin_pre/.gitignore: -------------------------------------------------------------------------------- 1 | model/ -------------------------------------------------------------------------------- /lstm/sin_pre/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/lstm/sin_pre/train.py -------------------------------------------------------------------------------- /mnist/.gitignore: -------------------------------------------------------------------------------- 1 | model/ -------------------------------------------------------------------------------- /mnist/best/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/best/eval.py -------------------------------------------------------------------------------- /mnist/best/inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/best/inference.py -------------------------------------------------------------------------------- /mnist/best/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/best/train.py -------------------------------------------------------------------------------- /mnist/data/t10k-images-idx3-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/data/t10k-images-idx3-ubyte.gz -------------------------------------------------------------------------------- /mnist/data/t10k-labels-idx1-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/data/t10k-labels-idx1-ubyte.gz -------------------------------------------------------------------------------- /mnist/data/train-images-idx3-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/data/train-images-idx3-ubyte.gz -------------------------------------------------------------------------------- /mnist/data/train-labels-idx1-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/data/train-labels-idx1-ubyte.gz -------------------------------------------------------------------------------- /mnist/lenet-5/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/lenet-5/eval.py -------------------------------------------------------------------------------- /mnist/lenet-5/inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/lenet-5/inference.py -------------------------------------------------------------------------------- /mnist/lenet-5/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/lenet-5/train.py -------------------------------------------------------------------------------- /mnist/mnist_all.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/mnist_all.py -------------------------------------------------------------------------------- /mnist/mnist_cnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/mnist_cnn.py -------------------------------------------------------------------------------- /mnist/mnist_softmax.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/mnist/mnist_softmax.py -------------------------------------------------------------------------------- /softmax/softmax.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/softmax/softmax.py -------------------------------------------------------------------------------- /transfer-learning/.gitignore: -------------------------------------------------------------------------------- 1 | model/ 2 | flower_photos/ 3 | tmp/ 4 | runs/ -------------------------------------------------------------------------------- /transfer-learning/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/transfer-learning/eval.py -------------------------------------------------------------------------------- /transfer-learning/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/transfer-learning/train.py -------------------------------------------------------------------------------- /visualization/monitor/.gitignore: -------------------------------------------------------------------------------- 1 | log/ -------------------------------------------------------------------------------- /visualization/monitor/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/widiot/tensorflow-practices/HEAD/visualization/monitor/train.py --------------------------------------------------------------------------------