Skip to content

Instantly share code, notes, and snippets.

This was a memo to a coworker at Microsoft
Here is the code for the Tango app I made.
1. My code is based on https://github.com/googlesamples/tango-examples-c, which is the official sample apps for C.
So this is pretty well managed and has a detailed guide on how to install the sample apps, for example: https://developers.google.com/tango/apis/c/
2. If you can get their sample apps work first, then you can grab my changes to output the images as files
https://github.com/Efreeto/tango-examples-c/tree/woki is a fork of the above code.
I tested it’s working, and its final version is with the phone.
@Efreeto
Efreeto / How to run Vatic on Windows 10 based Ubuntu.md
Last active August 7, 2017 11:50
How to run Vatic on Windows 10 based Ubuntu
  1. Get Linux Bash Shell on Windows 10 (https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/)

    1. Open the Settings app and head to Update & Security > For Developers. Activate the "Developer Mode" switch here to enable Developer Mode.
    2. Next, open the Control Panel, click "Programs," and click "Turn Windows Features On or Off" under Programs and Features. Enable the "Windows Subsystem for Linux (Beta)" option in the list here and click "OK."
    3. After your computer restarts, click the Start button (or press the Windows key), type "bash", and press "Enter."
  2. Install dependencies of vatic. The rest of this guide is based on the instruction at https://gitlab.com/EAVISE/publicwiki/wikis/install-vatic, but follow this guide here written for Windows 10's Ubuntu. I highlighted the necessary changes from the original guide in bold.    1. First install the needed packages, make sure that you leave the MySQL password empty (You will be asked to provide it this sever

name: "facial_point_net"
input: "data"
input_dim: 1
input_dim: 3
input_dim: 448
input_dim: 448
layer {
name: "downsample_data"
type: "SubsamplePooling"
# Modified from https://github.com/fxia22/stn.pytorch/blob/master/script/test.py
from __future__ import print_function
import torch
import numpy as np
import torch.nn as nn
from torch.autograd import Variable
# from modules.stn import STN