repo_description: DeepFaceLab is the leading software for creating deepfakes.
repo_topics: arxiv creating-deepfakes deep-face-swap deep-learning deep-neural-networks deepface deepfacelab deepfakes deeplearning face-swap faceswap fakeapp machine-learning neural-nets neural-networks
code: import struct
  
  def struct_unpack(data, counter, fmt):
      fmt_size = struct.calcsize(fmt)
      return (counter+fmt_size,) + struct.unpack (fmt, data[counter:counter+fmt_size])
  