goberoi / faceit

A script to make it easy to swap faces in videos using the faceswap library, and YouTube videos.
988 stars 423 forks source link

OSError: [Errno 17] File exists: '/faceit/data/processed/fallon_mom.mp4_faces' #3

Open kartikchauhan opened 6 years ago

kartikchauhan commented 6 years ago

[extract-faces] about to extract faces for data/processed/fallon_mom.mp4_faces Input Directory: /media/killwithme/Ubuntu extended/projects/faceit/data/processed/fallon_mom.mp4_frames Output Directory: /media/killwithme/Ubuntu extended/projects/faceit/data/processed/fallon_mom.mp4_faces Starting, this may take a while... Traceback (most recent call last): File "faceit.py", line 362, in faceit.preprocess() File "faceit.py", line 172, in preprocess self.extract_faces() File "faceit.py", line 79, in extract_faces self._process_media(self._extract_faces) File "faceit.py", line 88, in _process_media func(person, video) File "faceit.py", line 153, in _extract_faces self._faceswap.extract(self._video_frames_path(video), video_faces_dir, self._people[person]['faces']) File "faceit.py", line 310, in extract self._run_script(args_str) File "faceit.py", line 324, in _run_script args.func(args) File "faceswap/lib/cli.py", line 42, in process_arguments self.output_dir = get_folder(self.arguments.output_dir) File "faceswap/lib/utils.py", line 11, in get_folder output_dir.mkdir(parents=True) File "/home/killwithme/anaconda2/envs/tensorflow/lib/python2.7/site-packages/pathlib.py", line 1106, in mkdir self._accessor.mkdir(self, mode) File "/home/killwithme/anaconda2/envs/tensorflow/lib/python2.7/site-packages/pathlib.py", line 346, in wrapped return strfunc(str(pathobj), *args) OSError: [Errno 17] File exists: '/media/killwithme/Ubuntu extended/projects/faceit/data/processed/fallon_mom.mp4_faces'