New and doing something wrong

Installing and setting up FaceSwap


Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
chuer24
Posts: 2
Joined: Sat Sep 05, 2020 8:14 am

New and doing something wrong

Post by chuer24 »

Hi, new to this and want to learn deep-fakes. I downloaded the program on a Dell XPS laptop and chose the "GPU" setting don't know whether was good or bad. I have a few Crash Reports and had to enable "Growth". Any help and or feedback on where I am messing up is greatly appreciated.

User avatar
torzdf
Posts: 2671
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 131 times
Been thanked: 625 times

Re: New and doing something wrong

Post by torzdf »

You'd need to provide more specific problems than this.

Start with the FAQ (app.php/faqpage) and guides (app.php/tag/Guide) and go from there

My word is final

User avatar
chuer24
Posts: 2
Joined: Sat Sep 05, 2020 8:14 am

Re: New and doing something wrong

Post by chuer24 »

This is a log file that I copied, does "Not enough free Vram" have something to do with it?

Code: Select all

Setting Faceswap backend to NVIDIA
09/05/2020 03:08:09 INFO     Log level set to: INFO
09/05/2020 03:08:13 INFO     Output Directory: C:\Users\maske\OneDrive\Desktop\simpteez\face1

09/05/2020 03:08:14 INFO     Loading Detect from S3Fd plugin...
09/05/2020 03:08:14 INFO     Loading Align from Fan plugin...
09/05/2020 03:08:14 INFO     Loading Mask from Components plugin...
09/05/2020 03:08:14 INFO     Loading Mask from Extended plugin...
09/05/2020 03:08:14 WARNING  Not enough free VRAM for parallel processing. Switching to serial
09/05/2020 03:08:14 INFO     Reset batch sizes due to available VRAM: Detect: 1
09/05/2020 03:08:14 INFO     Starting, this may take a while...
09/05/2020 03:08:14 INFO     Initializing S3FD (Detect)...
09/05/2020 03:08:14 INFO     Setting allow growth for GPU: PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')
09/05/2020 03:08:19 INFO     Initialized S3FD (Detect) with batchsize of 1

09/05/2020 03:08:49 ERROR    Got Exception on main handler:
Traceback (most recent call last):
File "C:\Users\maske\faceswap\lib\cli\launcher.py", line 156, in execute_script
process.process()
File "C:\Users\maske\faceswap\scripts\extract.py", line 117, in process
self._run_extraction()
File "C:\Users\maske\faceswap\scripts\extract.py", line 213, in _run_extraction
for idx, extract_media in enumerate(status_bar):
File "C:\Users\maske\MiniConda3\envs\faceswap\lib\site-packages\tqdm\std.py", line 1130, in __iter__
for obj in iterable:
File "C:\Users\maske\faceswap\plugins\extract\pipeline.py", line 233, in detected_faces
if self._check_and_raise_error():
File "C:\Users\maske\faceswap\plugins\extract\pipeline.py", line 655, in _check_and_raise_error
if plugin.check_and_raise_error():
File "C:\Users\maske\faceswap\plugins\extract\_base.py", line 302, in check_and_raise_error
err = thread.check_and_raise_error()
File "C:\Users\maske\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
raise error[1].with_traceback(error[2])
File "C:\Users\maske\faceswap\lib\multithreading.py", line 37, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\maske\faceswap\plugins\extract\_base.py", line 420, in _thread_process
batch = function(batch)
File "C:\Users\maske\faceswap\plugins\extract\detect\_base.py", line 208, in _predict
batch = self.predict(batch)
File "C:\Users\maske\faceswap\plugins\extract\detect\s3fd.py", line 54, in predict
predictions = self.model.predict(batch["feed"])
File "C:\Users\maske\faceswap\lib\model\session.py", line 77, in predict
return self._model.predict(feed, batch_size=batch_size)
File "C:\Users\maske\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py", line 88, in _method_wrapper
return method(self, *args, **kwargs)
File "C:\Users\maske\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py", line 1268, in predict
tmp_batch_outputs = predict_function(iterator)
File "C:\Users\maske\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\def_function.py", line 580, in __call__
result = self._call(*args, **kwds)
File "C:\Users\maske\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\def_function.py", line 618, in _call
results = self._stateful_fn(*args, **kwds)
File "C:\Users\maske\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\function.py", line 2420, in __call__
return graph_function._filtered_call(args, kwargs)  # pylint: disable=protected-access
File "C:\Users\maske\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\function.py", line 1661, in _filtered_call
return self._call_flat(
File "C:\Users\maske\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\function.py", line 1745, in _call_flat
return self._build_call_outputs(self._inference_function.call(
File "C:\Users\maske\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\function.py", line 593, in call
outputs = execute.execute(
File "C:\Users\maske\MiniConda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\execute.py", line 59, in quick_execute
tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.ResourceExhaustedError:  OOM when allocating tensor with shape[64,642,642] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
[[node model_1/LAYER_2_pad/Pad (defined at \faceswap\lib\model\session.py:77) ]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
[Op:__inference_predict_function_1399]

Function call stack:
predict_function

09/05/2020 03:08:49 CRITICAL An unexpected crash has occurred. Crash report written to 'C:\Users\maske\faceswap\crash_report.2020.09.05.030839883331.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting
User avatar
torzdf
Posts: 2671
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 131 times
Been thanked: 625 times

Re: New and doing something wrong

Post by torzdf »

Crash report written to 'C:\Users\maske\faceswap\crash_report.2020.09.05.030839883331.log'. You MUST provide this file if seeking assistance

My word is final

User avatar
djandg
Posts: 43
Joined: Mon Dec 09, 2019 7:00 pm
Has thanked: 4 times
Been thanked: 2 times

Re: New and doing something wrong

Post by djandg »

For the experts (which isn't me !) to help you, you'll need to post the whole log - C:\Users\maske\faceswap\crash_report.2020.09.05.030839883331.log
which includes the system info.

Also don't choose your Onedrive folder as the output folder, use a different output folder on the drive or desktop.

Locked