TensorFlowDeepAutoencoder
MNIST Digit Classification Using Stacked Autoencoder And TensorFlow
Install / Use
/learn @cmgreen210/TensorFlowDeepAutoencoderREADME
Deep Autoencoder with TensorFlow
<p align="center"> <img src="filters_1.png" alt="Some First Layer Filters"/> </p> <p align="center"> A selection of first layer weight filters learned during the pretraining </p>Introduction
The purpose of this repo is to explore the functionality of Google's recently open-sourced "sofware library for numerical computation using data flow graphs", TensorFlow. We use the library to train a deep autoencoder on the MNIST digit data set. For background and a similar implementation using Theano see the tutorial at http://www.deeplearning.net/tutorial/SdA.html.
The main training code can be found in autoencoder.py along with the AutoEncoder class that creates and manages the Variables and Tensors used.
Docker Setup (CPU version only for the time being)
In order to avoid platform issues it's highly encouraged that you run the example code in a Docker container. Follow the Docker installation instructions on the website. Then run:
$ git clone https://github.com/cmgreen210/TensorFlowDeepAutoencoder
$ cd TensorFlowDeepAutoencoder
$ docker build -t tfdae -f cpu/Dockerfile .
$ docker run -it -p 80:6006 tfdae python run.py
Navigate to <a href="http://localhost:80" target="_blank">http://localhost:80</a> to explore TensorBoard and view the training progress.
<p align="center"> <img src="tb_hist.png" alt="TensorBoard Histograms"/> </p> <p align="center"> View of TensorBoard's display of weight and bias parameter progress. </p> ## Customizing You can play around with the run options, including the neural net size and shape, input corruption, learning rates, etc. in [flags.py](https://github.com/cmgreen210/TensorFlowDeepAutoencoder/blob/master/code/ae/utils/flags.py).Old Setup
It is expected that Python2.7 is installed and your default python version.
Ubuntu/Linux
$ git clone https://github.com/cmgreen210/TensorFlowDeepAutoencoder
$ cd TensorFlowDeepAutoencoder
$ sudo chmod +x setup_linux
$ sudo ./setup_linux # If you want GPU version specify -g or --gpu
$ source venv/bin/activate
Mac OS X
$ git clone https://github.com/cmgreen210/TensorFlowDeepAutoencoder
$ cd TensorFlowDeepAutoencoder
$ sudo chmod +x setup_mac
$ sudo ./setup_mac
$ source venv/bin/activate
Run
To run the default example execute the following command. NOTE: this will take a very long time if you are running on a CPU as opposed to a GPU
$ python code/run.py
Navigate to <a href="http://localhost:6006" target="_blank">http://localhost:6006</a> to explore TensorBoard and view training progress.
<p align="center"> <img src="tb_hist.png" alt="TensorBoard Histograms"/> </p> <p align="center"> View of TensorBoard's display of weight and bias parameter progress. </p> ## Customizing You can play around with the run options, including the neural net size and shape, input corruption, learning rates, etc. in [flags.py](https://github.com/cmgreen210/TensorFlowDeepAutoencoder/blob/master/code/ae/utils/flags.py).Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
