xaviviro/refacer

numpy.core._exceptions._ArrayMemoryError

Dreikfall opened this issue · 0 comments

Guys, tell me what the problem is. I work with 4K video 25 fps 13000 kbps. I'm running on a cpu and 16gb ram. Approximately when the length of the video is more than 10 seconds. An error comes out:

fake_merged = img_mask * bgr_fake + (1-img_mask) * target_img.astype(np.float32)
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 94.9 MiB for an array with shape (2160, 3840, 3) and data type float32

Swap file 16 GB, I work on behalf of the administrator.