Imported from https://github.com/alexbmp/run-vnet-keras