All Projects → carpedm20 → Simulated Unsupervised Tensorflow

carpedm20 / Simulated Unsupervised Tensorflow

Licence: apache-2.0
TensorFlow implementation of "Learning from Simulated and Unsupervised Images through Adversarial Training"

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Simulated Unsupervised Tensorflow

Secure Mobile Development
A Collection of Secure Mobile Development Best Practices
Stars: ✭ 427 (-23.48%)
Mutual labels:  apple
Yasio
A multi-platform support c++11 library with focus on asio (asynchronous socket I/O) for any client application.
Stars: ✭ 483 (-13.44%)
Mutual labels:  apple
Ngx Auth Firebaseui
Angular Material UI component for firebase authentication
Stars: ✭ 518 (-7.17%)
Mutual labels:  apple
Arkit By Example
Apple ARKit example app
Stars: ✭ 458 (-17.92%)
Mutual labels:  apple
React Native Safari View
A React Native wrapper for Safari View Controller.
Stars: ✭ 475 (-14.87%)
Mutual labels:  apple
Seqgan
A simplified PyTorch implementation of "SeqGAN: Sequence Generative Adversarial Nets with Policy Gradient." (Yu, Lantao, et al.)
Stars: ✭ 502 (-10.04%)
Mutual labels:  generative-model
Cfpropertylist
PHP Implementation of Apple's PList (binary and xml)
Stars: ✭ 423 (-24.19%)
Mutual labels:  apple
Docker Timemachine
A docker container that compiles the lastest Netatalk to run a Time Machine server.
Stars: ✭ 542 (-2.87%)
Mutual labels:  apple
Pixel Rnn Tensorflow
in progress
Stars: ✭ 478 (-14.34%)
Mutual labels:  generative-model
Hackers
Hackers is an elegant iOS app for reading Hacker News written in Swift.
Stars: ✭ 513 (-8.06%)
Mutual labels:  apple
Example Ios Apps
 A curated list of Open Source example iOS apps developed in Swift. An amazing list for people who are beginners and learning ios development and for ios developers who need any example app or feature.
Stars: ✭ 461 (-17.38%)
Mutual labels:  apple
Dancenet
DanceNet -💃💃Dance generator using Autoencoder, LSTM and Mixture Density Network. (Keras)
Stars: ✭ 469 (-15.95%)
Mutual labels:  generative-model
Appwrite
Appwrite is a secure end-to-end backend server for Web, Mobile, and Flutter developers that is packaged as a set of Docker containers for easy deployment 🚀
Stars: ✭ 14,592 (+2515.05%)
Mutual labels:  apple
Jukebox
Code for the paper "Jukebox: A Generative Model for Music"
Stars: ✭ 4,863 (+771.51%)
Mutual labels:  generative-model
Icepa
iOS system-wide VPN based Tor client
Stars: ✭ 519 (-6.99%)
Mutual labels:  apple
Mtlpp
C++ Metal wrapper
Stars: ✭ 425 (-23.84%)
Mutual labels:  apple
Findme
An ARKit App that can help your friends to find you
Stars: ✭ 483 (-13.44%)
Mutual labels:  apple
Opendrop
An open Apple AirDrop implementation written in Python
Stars: ✭ 5,505 (+886.56%)
Mutual labels:  apple
Awesome Semi Supervised Learning
📜 An up-to-date & curated list of awesome semi-supervised learning papers, methods & resources.
Stars: ✭ 538 (-3.58%)
Mutual labels:  generative-model
Brooklyn
🍎 Screensaver inspired by Apple's Event on October 30, 2018
Stars: ✭ 4,906 (+779.21%)
Mutual labels:  apple

Simulated+Unsupervised (S+U) Learning in TensorFlow

TensorFlow implementation of Learning from Simulated and Unsupervised Images through Adversarial Training.

model

Requirements

Usage

To generate synthetic dataset:

  1. Run UnityEyes with changing resolution to 640x480 and Camera parameters to [0, 0, 20, 40].
  2. Move generated images and json files into data/gaze/UnityEyes.

The data directory should looks like:

data
├── gaze
│   ├── MPIIGaze
│   │   └── Data
│   │       └── Normalized
│   │           ├── p00
│   │           ├── p01
│   │           └── ...
│   └── UnityEyes # contains images of UnityEyes
│       ├── 1.jpg
│       ├── 1.json
│       ├── 2.jpg
│       ├── 2.json
│       └── ...
├── __init__.py
├── gaze_data.py
├── hand_data.py
└── utils.py

To train a model (samples will be generated in samples directory):

$ python main.py
$ tensorboard --logdir=logs --host=0.0.0.0

To refine all synthetic images with a pretrained model:

$ python main.py --is_train=False --synthetic_image_dir="./data/gaze/UnityEyes/"

Training results

Differences with the paper

  • Used Adam and Stochatstic Gradient Descent optimizer.
  • Only used 83K (14% of 1.2M used by the paper) synthetic images from UnityEyes.
  • Manually choose hyperparameters for B and lambda because those are not specified in the paper.

Experiments #1

For these synthetic images,

UnityEyes_sample

Result of lambda=1.0 with optimizer=sgd after 8,000 steps.

$ python main.py --reg_scale=1.0 --optimizer=sgd

Refined_sample_with_lambd=1.0

Result of lambda=0.5 with optimizer=sgd after 8,000 steps.

$ python main.py --reg_scale=0.5 --optimizer=sgd

Refined_sample_with_lambd=1.0

Training loss of discriminator and refiner when lambda is 1.0 (green) and 0.5 (yellow).

loss

Experiments #2

For these synthetic images,

UnityEyes_sample

Result of lambda=1.0 with optimizer=adam after 4,000 steps.

$ python main.py --reg_scale=1.0 --optimizer=adam

Refined_sample_with_lambd=1.0

Result of lambda=0.5 with optimizer=adam after 4,000 steps.

$ python main.py --reg_scale=0.5 --optimizer=adam

Refined_sample_with_lambd=0.5

Result of lambda=0.1 with optimizer=adam after 4,000 steps.

$ python main.py --reg_scale=0.1 --optimizer=adam

Refined_sample_with_lambd=0.1

Training loss of discriminator and refiner when lambda is 1.0 (blue), 0.5 (purple) and 0.1 (green).

loss

Author

Taehoon Kim / @carpedm20

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].