This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from facenet_pytorch import MTCNN | |
import cv2 | |
from PIL import Image | |
from os import listdir, makedirs | |
import glob | |
from os.path import join, exists | |
from skimage.io import imsave | |
import imageio.core.util |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
from os import makedirs | |
from os.path import join, exists | |
import glob | |
training_videos_folder = ["train/0", "train/1"] | |
for folder in training_videos_folder: | |
videos_path = glob.glob(join(folder, "*.mp4")) | |
folder = folder.split("/")[1] |