Imported from https://github.com/pydsgz/DeepVOG