Error during Convert - CRITICAL An unexpected crash has occurred

Converting source frames into swapped frames
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.
Post Reply
User avatar
RahulRookie
Posts: 4
Joined: Sun May 31, 2020 9:31 am

Error during Convert - CRITICAL An unexpected crash has occurred

Post by RahulRookie »

Hi,

Need help to debug this error

I am getting the following error when I run Convert function. Full video is not generated, it crashes in the mid way.
What is the cause of this issue and how to fix. Appreciate any support. I am using GPU

Traceback (most recent call last):
File "D:\FACESWAP_NEW\faceswap\lib\cli\launcher.py", line 155, in execute_script
process.process()
File "D:\FACESWAP_NEW\faceswap\scripts\convert.py", line 157, in process
self._convert_images()
File "D:\FACESWAP_NEW\faceswap\scripts\convert.py", line 184, in _convert_images
self._check_thread_error()
File "D:\FACESWAP_NEW\faceswap\scripts\convert.py", line 204, in _check_thread_error
thread.check_and_raise_error()
File "D:\FACESWAP_NEW\faceswap\lib\multithreading.py", line 84, in check_and_raise_error
raise error[1].with_traceback(error[2])
File "D:\FACESWAP_NEW\faceswap\lib\multithreading.py", line 37, in run
self._target(*self._args, **self._kwargs)
File "D:\FACESWAP_NEW\faceswap\scripts\convert.py", line 873, in _predict_faces
predicted = self._predict(feed_faces, batch_size)
File "D:\FACESWAP_NEW\faceswap\scripts\convert.py", line 958, in _predict
predicted = self._predictor(feed, batch_size=batch_size)
File "C:\Users\RR\MiniConda3\envs\faceswap\lib\site-packages\keras\engine\training.py", line 1169, in predict
steps=steps)
File "C:\Users\RR\MiniConda3\envs\faceswap\lib\site-packages\keras\engine\training_arrays.py", line 294, in predict_loop
batch_outs = f(ins_batch)
File "C:\Users\RR\MiniConda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py", line 2715, in __call__
return self._call(inputs)
File "C:\Users\RR\MiniConda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py", line 2675, in _call
fetched = self._callable_fn(*array_vals)
File "C:\Users\RR\MiniConda3\envs\faceswap\lib\site-packages\tensorflow_core\python\client\session.py", line 1472, in __call__
run_metadata_ptr)
tensorflow.python.framework.errors_impl.ResourceExhaustedError: 2 root error(s) found.
(0) Resource exhausted: OOM when allocating tensor with shape[256,128,5,5] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
[[{{node encoder/conv_32_0_conv2d/convolution}}]]
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.

[[decoder_b/face_out/Sigmoid/_185]]
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.

(1) Resource exhausted: OOM when allocating tensor with shape[256,128,5,5] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
[[{{node encoder/conv_32_0_conv2d/convolution}}]]
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.

0 successful operations.
0 derived errors ignored.
06/16/2020 12:28:31 CRITICAL An unexpected crash has occurred. Crash report written to 'D:\FACESWAP_NEW\faceswap\crash_report.2020.06.16.122825733693.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting
Process exited.


Script from Generate function
-------------------------
C:\Users\RR\MiniConda3\envs\faceswap\python.exe D:\FACESWAP_NEW\faceswap\faceswap.py convert -i D:/FACESWAP_PROJECTS/PROJ10/DST-101.mp4 -o D:/FACESWAP_PROJECTS/PROJ10/Output -m D:/FACESWAP_PROJECTS/PROJ10/ModelAB -c avg-color -M none -sc none -w ffmpeg -osc 100 -l 0.4 -j 0 -g 1 -ag -otf -L INFO

Post Reply