Imported from https://github.com/luannd/MinutiaeNet