Faceswap crashing during extraction

The Extraction process failing on you, and you aren't getting an error back with clear instructions? Tell us about it here


Forum rules

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

This forum is for reporting errors with the Extraction process. If you want to get tips, or better understand the Extract process, then you should look in the Extract Discussion forum.

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

Locked
User avatar
MetaUserName
Posts: 6
Joined: Mon Mar 09, 2020 7:48 pm
Has thanked: 1 time

Faceswap crashing during extraction

Post by MetaUserName »

I was using the Vgg-obstructed mask when my extraction failed. I pulled this from my crash report.

Traceback (most recent call last):
File "C:\Users\Stephen\MiniConda3\envs\faceswap\lib\site-packages\tensorflow_core\python\client\session.py", line 1365, in _do_call
return fn(*args)
File "C:\Users\Stephen\MiniConda3\envs\faceswap\lib\site-packages\tensorflow_core\python\client\session.py", line 1350, in _run_fn
target_list, run_metadata)
File "C:\Users\Stephen\MiniConda3\envs\faceswap\lib\site-packages\tensorflow_core\python\client\session.py", line 1443, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.InternalError: 2 root error(s) found.
(0) Internal: Dst tensor is not initialized.
[[{{node arg_Placeholder_28_0_20}}]]
[[Assign_14/
167]]
(1) Internal: Dst tensor is not initialized.
[[{{node _arg_Placeholder_28_0_20}}]]
0 successful operations.
0 derived errors ignored.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Stephen\faceswap\lib\cli.py", line 128, in execute_script
process.process()
File "C:\Users\Stephen\faceswap\scripts\extract.py", line 114, in process
self._run_extraction()
File "C:\Users\Stephen\faceswap\scripts\extract.py", line 201, in run_extraction
self.
extractor.launch()
File "C:\Users\Stephen\faceswap\plugins\extract\pipeline.py", line 185, in launch
self._launch_plugin(self.phase)
File "C:\Users\Stephen\faceswap\plugins\extract\pipeline.py", line 411, in launch_plugin
plugin.initialize(**kwargs)
File "C:\Users\Stephen\faceswap\plugins\extract\_base.py", line 334, in initialize
self.init_model()
File "C:\Users\Stephen\faceswap\plugins\extract\mask\vgg_obstructed.py", line 38, in init_model
self.model.load_model()
File "C:\Users\Stephen\faceswap\lib\model\session.py", line 141, in load_model
self.
model = k_load_model(self.model_path, **self.model_kwargs)
File "C:\Users\Stephen\MiniConda3\envs\faceswap\lib\site-packages\keras\engine\saving.py", line 419, in load_model
model = _deserialize_model(f, custom_objects, compile)
File "C:\Users\Stephen\MiniConda3\envs\faceswap\lib\site-packages\keras\engine\saving.py", line 287, in _deserialize_model
K.batch_set_value(weight_value_tuples)
File "C:\Users\Stephen\MiniConda3\envs\faceswap\lib\site-packages\keras\backend\tensorflow_backend.py", line 2470, in batch_set_value
get_session().run(assign_ops, feed_dict=feed_dict)
File "C:\Users\Stephen\MiniConda3\envs\faceswap\lib\site-packages\tensorflow_core\python\client\session.py", line 956, in run
run_metadata_ptr)
File "C:\Users\Stephen\MiniConda3\envs\faceswap\lib\site-packages\tensorflow_core\python\client\session.py", line 1180, in _run
feed_dict_tensor, options, run_metadata)
File "C:\Users\Stephen\MiniConda3\envs\faceswap\lib\site-packages\tensorflow_core\python\client\session.py", line 1359, in _do_run
run_metadata)
File "C:\Users\Stephen\MiniConda3\envs\faceswap\lib\site-packages\tensorflow_core\python\client\session.py", line 1384, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InternalError: 2 root error(s) found.
(0) Internal: Dst tensor is not initialized.
[[{{node arg_Placeholder_28_0_20}}]]
[[Assign_14/
167]]
(1) Internal: Dst tensor is not initialized.
[[{{node _arg_Placeholder_28_0_20}}]]
0 successful operations.
0 derived errors ignored.

I am not sure how to resolve this problem. Any help from the community would be appreciated.

User avatar
LonelyAsteroid
Posts: 5
Joined: Mon Apr 06, 2020 4:44 pm
Has thanked: 2 times

Re: Faceswap crashing during extraction

Post by LonelyAsteroid »

Check out this link: https://github.com/tensorflow/tensorflow/issues/7025

I think you have a similar error where your GPU is not big enough to handle the VGG model. How big is your GPU memory?

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: Faceswap crashing during extraction

Post by bryanlyon »

First try with "allow growth" enabled. If it's still giving you problems please post the full crash log.

Locked