Page 1 of 1

Crash at run extract on linux centos7

Posted: Sun Dec 29, 2019 4:30 pm
by crosser

Code: Select all

12/30/2019 00:09:32 MainProcess     MainThread      logger          log_setup                 INFO     Log level set to: INFO
12/30/2019 00:09:32 MainProcess     MainThread      cli             execute_script            DEBUG    Executing: extract. PID: 17124
12/30/2019 00:09:38 MainProcess     MainThread      cli             test_for_tf_version       DEBUG    Installed Tensorflow Version: 1.15
12/30/2019 00:09:39 MainProcess     MainThread      queue_manager   __init__                  DEBUG    Initializing QueueManager
12/30/2019 00:09:39 MainProcess     MainThread      queue_manager   __init__                  DEBUG    Initialized QueueManager
12/30/2019 00:09:39 MainProcess     MainThread      extract         __init__                  DEBUG    Initializing Extract: (args: Namespace(aligner='fan', alignments_path=None, colab=False, configfile=None, debug_landmarks=False, detector='s3fd', extract_every_n=12, filter=None, func=<bound method ScriptExecutor.execute_script of <lib.cli.ScriptExecutor object at 0x7fcd7a415190>>, input_dir='/www/faceswap/source/muramura-021616_353.mp4', logfile=None, loglevel='INFO', masker='extended', min_size=0, nfilter=None, normalization='none', output_dir='/www/faceswap/output/021616', redirect_gui=False, ref_threshold=0.4, rotate_images=None, save_interval=0, singleprocess=False, size=256, skip_existing=False, skip_faces=False)
12/30/2019 00:09:39 MainProcess     MainThread      utils           get_folder                DEBUG    Requested path: '/www/faceswap/output/021616'
12/30/2019 00:09:39 MainProcess     MainThread      utils           get_folder                DEBUG    Returning: '/www/faceswap/output/021616'
12/30/2019 00:09:39 MainProcess     MainThread      extract         __init__                  INFO     Output Directory: /www/faceswap/output/021616
12/30/2019 00:09:39 MainProcess     MainThread      image           __init__                  DEBUG    Initializing ImagesLoader: (path: /www/faceswap/source/muramura-021616_353.mp4, queue_size: 8, load_with_hash: False, fast_count: True, skip_list: None)
12/30/2019 00:09:39 MainProcess     MainThread      image           __init__                  DEBUG    Initializing ImagesLoader: (path: /www/faceswap/source/muramura-021616_353.mp4, queue_size: 8, args: (False,))
12/30/2019 00:09:39 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager getting: 'ImagesLoader'
12/30/2019 00:09:39 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager adding: (name: 'ImagesLoader', maxsize: 8)
12/30/2019 00:09:39 MainProcess     MainThread      queue_manager   add_queue                 DEBUG    QueueManager added: (name: 'ImagesLoader')
12/30/2019 00:09:39 MainProcess     MainThread      queue_manager   get_queue                 DEBUG    QueueManager got: 'ImagesLoader'
12/30/2019 00:09:39 MainProcess     MainThread      image           _check_for_video          DEBUG    Input '/www/faceswap/source/muramura-021616_353.mp4' is_video: True
12/30/2019 00:09:39 MainProcess     MainThread      image           count_frames              DEBUG    filename: /www/faceswap/source/muramura-021616_353.mp4, fast: True
Traceback (most recent call last):
  File "/home/faceswap/faceswap/lib/cli.py", line 128, in execute_script
    process = script(arguments)
  File "/home/faceswap/faceswap/scripts/extract.py", line 45, in __init__
    self._images = ImagesLoader(self._args.input_dir, load_with_hash=False, fast_count=True)
  File "/home/faceswap/faceswap/lib/image.py", line 494, in __init__
    self._get_count_and_filelist(fast_count)
  File "/home/faceswap/faceswap/lib/image.py", line 569, in _get_count_and_filelist
    self._count = int(count_frames(self.location, fast=fast_count))
  File "/home/faceswap/faceswap/lib/image.py", line 308, in count_frames
    cmd = [im_ffm.get_ffmpeg_exe(), "-i", filename, "-map", "0:v:0"]
  File "/home/faceswap/miniconda3/envs/faceswap/lib/python3.7/site-packages/imageio_ffmpeg/_utils.py", line 50, in get_ffmpeg_exe
    "No ffmpeg exe could be found. Install ffmpeg on your system, "
RuntimeError: No ffmpeg exe could be found. Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.
Exception occured trying to retrieve sysinfo: [Errno 12] Cannot allocate memory

install is viewtopic.php?f=4&t=68


Re: Crash at run extract on linux centos7

Posted: Sun Dec 29, 2019 5:19 pm
by torzdf

There are 2 problems here, which may be related.

1) ffmpeg can't be found, but it IS installed as a Faceswap Prerequisite.
2) You have run out of System Memory, which may have impacted 1)

Firstly try to reinstall.

If that doesn't work, then please output your system information and provide:

GUI Users: Go to Help -> Output system information

CLI Users: From inside your virtual environment, inside your faceswap folder, run:
python -c "from lib.sysinfo import sysinfo; print(sysinfo)"