Imported from https://github.com/EEEGUI/LEDNet-pytorch