Cannot convert a symbolic Tensor

If training is failing to start, and you are not receiving an error message telling you what to do, 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 Training process. If you want to get tips, or better understand the Training process, then you should look in the Training Discussion forum.

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

Locked
User avatar
valindis
Posts: 2
Joined: Mon Feb 08, 2021 12:42 am

Cannot convert a symbolic Tensor

Post by valindis »

Hello,

I have encountered an issue while training.

The console show :

CRITICAL Error caught! Exiting...
ERROR Caught exception in thread: '_training_0'
ERROR Got Exception on main handler:
CRITICAL An unexpected crash has occurred.

Here are the logs :

Code: Select all

02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000345_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000353_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000354_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000246_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000269_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000077_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000245_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000327_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000405_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000254_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000314_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000340_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Generating mask. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000274_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Generating mask. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000035_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Generating mask. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000171_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Generating mask. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000309_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Generating mask. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000228_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000315_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000021_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000250_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000203_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000092_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000075_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000236_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000020_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000176_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000248_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000219_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000168_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Generating mask. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000080_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Generating mask. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000036_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000345_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000353_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000354_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000246_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000269_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000077_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000245_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000327_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000405_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000254_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000314_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Mask already generated. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000340_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Generating mask. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000274_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Generating mask. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000097_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Generating mask. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000171_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_1                         training_data   _expand_partials               DEBUG    Generating mask. side: 'a', filename: 'C:\Users\pasqu\Downloads\Faceswap\Trump\Trump_000035_0.png'
02/08/2021 01:34:36 MainProcess     _run_1                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Generating mask. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000309_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _run_0                         training_data   _expand_partials               DEBUG    Generating mask. side: 'b', filename: 'C:\Users\pasqu\Downloads\Faceswap\Theo\Theo_000228_0.png'
02/08/2021 01:34:36 MainProcess     _run_0                         aligned_face    extract_face                   DEBUG    _extract_face called without a loaded image. Returning empty face.
02/08/2021 01:34:36 MainProcess     _training_0                    ag_logging      warn                           DEBUG    AutoGraph could not transform <bound method Logger.isEnabledFor of <FaceswapLogger lib.model.losses_tf (DEBUG)>> and will run it as-is.\nPlease report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.\nCause: module 'gast' has no attribute 'Index'\nTo silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert
02/08/2021 01:34:36 MainProcess     _training_0                    ag_logging      warn                           DEBUG    AutoGraph could not transform <bound method Logger.findCaller of <FaceswapLogger lib.model.losses_tf (DEBUG)>> and will run it as-is.\nPlease report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.\nCause: module 'gast' has no attribute 'Index'\nTo silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert
02/08/2021 01:34:36 MainProcess     _training_0                    ag_logging      warn                           DEBUG    AutoGraph could not transform <bound method Logger.makeRecord of <FaceswapLogger lib.model.losses_tf (DEBUG)>> and will run it as-is.\nPlease report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.\nCause: module 'gast' has no attribute 'Index'\nTo silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert
02/08/2021 01:34:37 MainProcess     _training_0                    ag_logging      warn                           DEBUG    AutoGraph could not transform <bound method FaceswapFormatter.format of <lib.logger.FaceswapFormatter object at 0x000001C06A8B7F70>> and will run it as-is.\nPlease report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.\nCause: module 'gast' has no attribute 'Index'\nTo silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert
02/08/2021 01:34:36 MainProcess     _training_0                    api             converted_call                 DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C003231BB0>, weight: 1.0, mask_channel: 3)
02/08/2021 01:34:37 MainProcess     _training_0                    ag_logging      warn                           DEBUG    AutoGraph could not transform <bound method LossWrapper._apply_mask of <class 'lib.model.losses_tf.LossWrapper'>> and will run it as-is.\nPlease report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.\nCause: module 'gast' has no attribute 'Index'\nTo silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert
02/08/2021 01:34:37 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 3
02/08/2021 01:34:37 MainProcess     _training_0                    ag_logging      warn                           DEBUG    AutoGraph could not transform <bound method DSSIMObjective.call of <lib.model.losses_tf.DSSIMObjective object at 0x000001C07417CD60>> and will run it as-is.\nPlease report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.\nCause: module 'gast' has no attribute 'Index'\nTo silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert
02/08/2021 01:34:37 MainProcess     _training_0                    tmp6oilvrk1     if_body                        DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C00321E220>, weight: 1.0, mask_channel: 3)
02/08/2021 01:34:37 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 3
02/08/2021 01:34:37 MainProcess     _training_0                    tmp6oilvrk1     if_body                        DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C00321EF40>, weight: 3.0, mask_channel: 4)
02/08/2021 01:34:37 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 4
02/08/2021 01:34:37 MainProcess     _training_0                    tmp6oilvrk1     if_body                        DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C07412C310>, weight: 1.0, mask_channel: 1)
02/08/2021 01:34:37 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 1
02/08/2021 01:34:37 MainProcess     _training_0                    tmp6oilvrk1     if_body                        DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C07412CDF0>, weight: 2.0, mask_channel: 5)
02/08/2021 01:34:37 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 5
02/08/2021 01:34:37 MainProcess     _training_0                    tmp6oilvrk1     if_body                        DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C00321D760>, weight: 1.0, mask_channel: 2)
02/08/2021 01:34:37 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 2
02/08/2021 01:34:37 MainProcess     _training_0                    tmp6oilvrk1     if_body                        DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C00321DDF0>, weight: 1.0, mask_channel: 3)
02/08/2021 01:34:37 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 3
02/08/2021 01:34:38 MainProcess     _training_0                    tmp6oilvrk1     if_body                        DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C003240760>, weight: 1.0, mask_channel: 3)
02/08/2021 01:34:38 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 3
02/08/2021 01:34:38 MainProcess     _training_0                    tmp6oilvrk1     if_body                        DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C003240BB0>, weight: 3.0, mask_channel: 4)
02/08/2021 01:34:38 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 4
02/08/2021 01:34:38 MainProcess     _training_0                    tmp6oilvrk1     if_body                        DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C003215340>, weight: 1.0, mask_channel: 1)
02/08/2021 01:34:38 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 1
02/08/2021 01:34:38 MainProcess     _training_0                    tmp6oilvrk1     if_body                        DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C003215E50>, weight: 2.0, mask_channel: 5)
02/08/2021 01:34:38 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 5
02/08/2021 01:34:38 MainProcess     _training_0                    tmp6oilvrk1     if_body                        DEBUG    Processing loss function: (func: <tensorflow.python.keras.engine.compile_utils.LossesContainer object at 0x000001C00322D790>, weight: 1.0, mask_channel: 2)
02/08/2021 01:34:38 MainProcess     _training_0                    losses_tf       _apply_mask                    DEBUG    Applying mask from channel 2
02/08/2021 01:34:38 MainProcess     _training_0                    multithreading  run                            DEBUG    Error in thread (_training_0): in user code:\n\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py:806 train_function  *\n        return step_function(self, iterator)\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py:796 step_function  **\n        outputs = model.distribute_strategy.run(run_step, args=(data,))\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:1211 run\n        return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:2585 call_for_each_replica\n        return self._call_for_each_replica(fn, args, kwargs)\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:2945 _call_for_each_replica\n        return fn(*args, **kwargs)\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py:789 run_step  **\n        outputs = model.train_step(data)\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py:756 train_step\n        _minimize(self.distribute_strategy, tape, self.optimizer, loss,\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py:2722 _minimize\n        gradients = tape.gradient(loss, trainable_variables)\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\backprop.py:1067 gradient\n        flat_grad = imperative_grad.imperative_grad(\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\imperative_grad.py:71 imperative_grad\n        return pywrap_tfe.TFE_Py_TapeGradient(\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\backprop.py:162 _gradient_function\n        return grad_fn(mock_op, *out_grads)\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\ops\array_grad.py:1011 _ExtractImagePatchesGrad\n        idx_map, array_ops.ones([output_indices_num], dtype=grad.dtype), sp_shape)\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\util\dispatch.py:201 wrapper\n        return target(*args, **kwargs)\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\ops\array_ops.py:3041 ones\n        output = _constant_if_small(one, shape, dtype, name)\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\ops\array_ops.py:2732 _constant_if_small\n        if np.prod(shape) < 1000:\n    <__array_function__ internals>:5 prod\n        \n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\numpy\core\fromnumeric.py:3030 prod\n        return _wrapreduction(a, np.multiply, 'prod', axis, dtype, out,\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\numpy\core\fromnumeric.py:87 _wrapreduction\n        return ufunc.reduce(obj, axis, dtype, out, **passkwargs)\n    C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\framework\ops.py:845 __array__\n        raise NotImplementedError(\n\n    NotImplementedError: Cannot convert a symbolic Tensor (gradient_tape/LossWrapper/DSSIMObjective_2/mul_5:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported\n
02/08/2021 01:34:39 MainProcess     MainThread                     train           _monitor                       DEBUG    Thread error detected
02/08/2021 01:34:39 MainProcess     MainThread                     train           _monitor                       DEBUG    Closed Monitor
02/08/2021 01:34:39 MainProcess     MainThread                     train           _end_thread                    DEBUG    Ending Training thread
02/08/2021 01:34:39 MainProcess     MainThread                     train           _end_thread                    CRITICAL Error caught! Exiting...
02/08/2021 01:34:39 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Threads: '_training'
02/08/2021 01:34:39 MainProcess     MainThread                     multithreading  join                           DEBUG    Joining Thread: '_training_0'
02/08/2021 01:34:39 MainProcess     MainThread                     multithreading  join                           ERROR    Caught exception in thread: '_training_0'
Traceback (most recent call last):
  File "C:\Users\pasqu\faceswap\lib\cli\launcher.py", line 182, in execute_script
    process.process()
  File "C:\Users\pasqu\faceswap\scripts\train.py", line 170, in process
    self._end_thread(thread, err)
  File "C:\Users\pasqu\faceswap\scripts\train.py", line 210, in _end_thread
    thread.join()
  File "C:\Users\pasqu\faceswap\lib\multithreading.py", line 121, in join
    raise thread.err[1].with_traceback(thread.err[2])
  File "C:\Users\pasqu\faceswap\lib\multithreading.py", line 37, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\pasqu\faceswap\scripts\train.py", line 232, in _training
    raise err
  File "C:\Users\pasqu\faceswap\scripts\train.py", line 222, in _training
    self._run_training_cycle(model, trainer)
  File "C:\Users\pasqu\faceswap\scripts\train.py", line 302, in _run_training_cycle
    trainer.train_one_step(viewer, timelapse)
  File "C:\Users\pasqu\faceswap\plugins\train\trainer\_base.py", line 238, in train_one_step
    loss = self._model.model.train_on_batch(model_inputs, y=model_targets)
  File "C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py", line 1695, in train_on_batch
    logs = train_function(iterator)
  File "C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\def_function.py", line 780, in __call__
    result = self._call(*args, **kwds)
  File "C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\def_function.py", line 823, in _call
    self._initialize(args, kwds, add_initializers_to=initializers)
  File "C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\def_function.py", line 696, in _initialize
    self._stateful_fn._get_concrete_function_internal_garbage_collected(  # pylint: disable=protected-access
  File "C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\function.py", line 2855, in _get_concrete_function_internal_garbage_collected
    graph_function, _, _ = self._maybe_define_function(args, kwargs)
  File "C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\function.py", line 3213, in _maybe_define_function
    graph_function = self._create_graph_function(args, kwargs)
  File "C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\function.py", line 3065, in _create_graph_function
    func_graph_module.func_graph_from_py_func(
  File "C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\framework\func_graph.py", line 986, in func_graph_from_py_func
    func_outputs = python_func(*func_args, **func_kwargs)
  File "C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\def_function.py", line 600, in wrapped_fn
    return weak_wrapped_fn().__wrapped__(*args, **kwds)
  File "C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\framework\func_graph.py", line 973, in wrapper
    raise e.ag_error_metadata.to_exception(e)
NotImplementedError: in user code:

C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py:806 train_function  *
    return step_function(self, iterator)
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py:796 step_function  **
    outputs = model.distribute_strategy.run(run_step, args=(data,))
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:1211 run
    return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:2585 call_for_each_replica
    return self._call_for_each_replica(fn, args, kwargs)
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:2945 _call_for_each_replica
    return fn(*args, **kwargs)
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py:789 run_step  **
    outputs = model.train_step(data)
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py:756 train_step
    _minimize(self.distribute_strategy, tape, self.optimizer, loss,
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\keras\engine\training.py:2722 _minimize
    gradients = tape.gradient(loss, trainable_variables)
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\backprop.py:1067 gradient
    flat_grad = imperative_grad.imperative_grad(
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\imperative_grad.py:71 imperative_grad
    return pywrap_tfe.TFE_Py_TapeGradient(
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\eager\backprop.py:162 _gradient_function
    return grad_fn(mock_op, *out_grads)
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\ops\array_grad.py:1011 _ExtractImagePatchesGrad
    idx_map, array_ops.ones([output_indices_num], dtype=grad.dtype), sp_shape)
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\util\dispatch.py:201 wrapper
    return target(*args, **kwargs)
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\ops\array_ops.py:3041 ones
    output = _constant_if_small(one, shape, dtype, name)
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\ops\array_ops.py:2732 _constant_if_small
    if np.prod(shape) < 1000:
<__array_function__ internals>:5 prod
    
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\numpy\core\fromnumeric.py:3030 prod
    return _wrapreduction(a, np.multiply, 'prod', axis, dtype, out,
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\numpy\core\fromnumeric.py:87 _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
C:\Users\pasqu\anaconda3\envs\faceswap\lib\site-packages\tensorflow\python\framework\ops.py:845 __array__
    raise NotImplementedError(

NotImplementedError: Cannot convert a symbolic Tensor (gradient_tape/LossWrapper/DSSIMObjective_2/mul_5:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported


============ System Information ============
encoding:            cp1252
git_branch:          master
git_commits:         6de2b31 bugfix: plugins.train - AMD Inference model compilation
gpu_cuda:            No global version found. Check Conda packages for Conda Cuda
gpu_cudnn:           No global version found. Check Conda packages for Conda cuDNN
gpu_devices:         
gpu_devices_active:
gpu_driver: No Nvidia driver found gpu_vram:
os_machine: AMD64 os_platform: Windows-10-10.0.19041-SP0 os_release: 10 py_command: C:\Users\pasqu\faceswap\faceswap.py train -A C:/Users/pasqu/Downloads/Faceswap/Trump -ala C:/Users/pasqu/Downloads/Faceswap/Trump_alignments.fsa -B C:/Users/pasqu/Downloads/Faceswap/Theo -alb C:/Users/pasqu/Downloads/Faceswap/Theo_alignments.fsa -m C:/Users/pasqu/Downloads/Faceswap/ModelAB -t original -bs 16 -it 1000000 -s 250 -ss 25000 -ps 100 -L INFO -gui py_conda_version: conda 4.9.2 py_implementation: CPython py_version: 3.8.6 py_virtual_env: True sys_cores: 8 sys_processor: Intel64 Family 6 Model 142 Stepping 12, GenuineIntel sys_ram: Total: 16125MB, Available: 7482MB, Used: 8643MB, Free: 7482MB =============== Pip Packages =============== absl-py @ file:///D:/bld/absl-py_1606235688386/work aiohttp @ file:///D:/bld/aiohttp_1610358740361/work astor @ file:///home/conda/feedstock_root/build_artifacts/astor_1593610464257/work astunparse @ file:///home/conda/feedstock_root/build_artifacts/astunparse_1610696312422/work async-timeout==3.0.1 attrs @ file:///home/conda/feedstock_root/build_artifacts/attrs_1605083924122/work blinker==1.4 brotlipy==0.7.0 cachetools @ file:///home/conda/feedstock_root/build_artifacts/cachetools_1611555765219/work certifi==2020.12.5 cffi @ file:///D:/bld/cffi_1606601395031/work chardet @ file:///D:/bld/chardet_1602255508636/work click==7.1.2 cryptography @ file:///D:/bld/cryptography_1610338909973/work cycler==0.10.0 fastcluster==1.1.26 ffmpy==0.2.3 gast @ file:///home/conda/feedstock_root/build_artifacts/gast_1596839682936/work google-auth @ file:///home/conda/feedstock_root/build_artifacts/google-auth_1608136875028/work google-auth-oauthlib==0.4.1 google-pasta==0.2.0 grpcio @ file:///D:/bld/grpcio_1612023691773/work h5py @ file:///D:/bld/h5py_1602551986735/work idna @ file:///home/conda/feedstock_root/build_artifacts/idna_1593328102638/work imageio @ file:///home/conda/feedstock_root/build_artifacts/imageio_1594044661732/work imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1609799311556/work importlib-metadata @ file:///D:/bld/importlib-metadata_1610355403747/work joblib @ file:///home/conda/feedstock_root/build_artifacts/joblib_1607956439537/work Keras-Applications==1.0.8 Keras-Preprocessing @ file:///home/conda/feedstock_root/build_artifacts/keras-preprocessing_1610713559828/work kiwisolver @ file:///D:/bld/kiwisolver_1610099948875/work Markdown @ file:///home/conda/feedstock_root/build_artifacts/markdown_1603668500820/work matplotlib @ file:///D:/bld/matplotlib-base_1594091905736/work multidict @ file:///D:/bld/multidict_1610319170773/work numpy @ file:///D:/bld/numpy_1612192921641/work nvidia-ml-py3 @ git+https://github.com/deepfakes/nvidia-ml-py3.git@6fc29ac84b32bad877f078cb4a777c1548a00bf6 oauthlib==3.0.1 olefile @ file:///home/conda/feedstock_root/build_artifacts/olefile_1602866521163/work opencv-python==4.5.1.48 opt-einsum==0+untagged.61.gd905544.dirty Pillow @ file:///D:/bld/pillow_1610407616132/work protobuf==3.14.0 psutil @ file:///D:/bld/psutil_1610127325750/work pyasn1==0.4.8 pyasn1-modules==0.2.7 pycparser @ file:///home/conda/feedstock_root/build_artifacts/pycparser_1593275161868/work PyJWT @ file:///home/conda/feedstock_root/build_artifacts/pyjwt_1610910308735/work pyOpenSSL @ file:///home/conda/feedstock_root/build_artifacts/pyopenssl_1608055815057/work pyparsing==2.4.7 PyQt5==5.12.3 PyQt5-sip==4.19.18 PyQtChart==5.12 PyQtWebEngine==5.12.1 pyreadline @ file:///D:/bld/pyreadline_1611175364000/work PySocks @ file:///D:/bld/pysocks_1610291742246/work python-dateutil==2.8.1 pywin32==300 requests @ file:///home/conda/feedstock_root/build_artifacts/requests_1608156231189/work requests-oauthlib @ file:///home/conda/feedstock_root/build_artifacts/requests-oauthlib_1595492159598/work rsa @ file:///home/conda/feedstock_root/build_artifacts/rsa_1610280765105/work scikit-learn @ file:///D:/bld/scikit-learn_1611079981849/work scipy @ file:///C:/bld/scipy_1609458016927/work six @ file:///home/conda/feedstock_root/build_artifacts/six_1590081179328/work tensorboard @ file:///home/conda/feedstock_root/build_artifacts/tensorboard_1610699261066/work/tensorboard-2.4.1-py3-none-any.whl tensorboard-plugin-wit @ file:///home/conda/feedstock_root/build_artifacts/tensorboard-plugin-wit_1611075653546/work/tensorboard_plugin_wit-1.8.0-py3-none-any.whl tensorflow==2.3.0 tensorflow-estimator @ file:///home/conda/feedstock_root/build_artifacts/tensorflow-estimator_1610655765755/work/tensorflow_estimator-2.4.0-py2.py3-none-any.whl termcolor==1.1.0 threadpoolctl @ file:///tmp/tmp79xdzxkt/threadpoolctl-2.1.0-py3-none-any.whl tornado @ file:///D:/bld/tornado_1610094858390/work tqdm @ file:///home/conda/feedstock_root/build_artifacts/tqdm_1610419111160/work typing-extensions @ file:///home/conda/feedstock_root/build_artifacts/typing_extensions_1602702424206/work urllib3 @ file:///home/conda/feedstock_root/build_artifacts/urllib3_1611695416663/work Werkzeug==1.0.1 win-inet-pton @ file:///D:/bld/win_inet_pton_1610147566231/work wincertstore==0.2 wrapt @ file:///D:/bld/wrapt_1610095100080/work yarl @ file:///D:/bld/yarl_1610354399983/work zipp @ file:///home/conda/feedstock_root/build_artifacts/zipp_1603668650351/work ============== Conda Packages ============== # packages in environment at C:\Users\pasqu\anaconda3\envs\faceswap: # # Name Version Build Channel _tflow_select 2.3.0 eigen
absl-py 0.11.0 py38haa244fe_0 conda-forge aiohttp 3.7.3 py38h294d835_1 conda-forge astor 0.8.1 pyh9f0ad1d_0 conda-forge astunparse 1.6.3 pyhd8ed1ab_0 conda-forge async-timeout 3.0.1 py_1000 conda-forge attrs 20.3.0 pyhd3deb0d_0 conda-forge blinker 1.4 py_1 conda-forge brotlipy 0.7.0 py38h294d835_1001 conda-forge ca-certificates 2020.12.5 h5b45459_0 conda-forge cachetools 4.2.1 pyhd8ed1ab_0 conda-forge certifi 2020.12.5 py38haa244fe_1 conda-forge cffi 1.14.4 py38hd8c33c5_1 conda-forge chardet 3.0.4 py38h9bdc248_1008 conda-forge click 7.1.2 pyh9f0ad1d_0 conda-forge cryptography 3.3.1 py38hd8c33c5_1 conda-forge cycler 0.10.0 py_2 conda-forge fastcluster 1.1.26 py38h251f6bf_2 conda-forge ffmpeg 4.3.1 ha925a31_0 conda-forge ffmpy 0.2.3 pypi_0 pypi freetype 2.10.4 h546665d_1 conda-forge gast 0.4.0 pyh9f0ad1d_0 conda-forge google-auth 1.24.0 pyhd3deb0d_0 conda-forge google-auth-oauthlib 0.4.1 py_2 conda-forge google-pasta 0.2.0 pyh8c360ce_0 conda-forge grpcio 1.35.0 py38he5377a8_0 conda-forge h5py 2.10.0 nompi_py38h6053941_105 conda-forge hdf5 1.10.6 nompi_h5268f04_1114 conda-forge icu 68.1 h0e60522_0 conda-forge idna 2.10 pyh9f0ad1d_0 conda-forge imageio 2.9.0 py_0 conda-forge imageio-ffmpeg 0.4.3 pyhd8ed1ab_0 conda-forge importlib-metadata 3.4.0 py38haa244fe_0 conda-forge intel-openmp 2020.3 h57928b3_311 conda-forge joblib 1.0.0 pyhd8ed1ab_0 conda-forge jpeg 9d h8ffe710_0 conda-forge keras-applications 1.0.8 py_1 conda-forge keras-preprocessing 1.1.2 pyhd8ed1ab_0 conda-forge kiwisolver 1.3.1 py38hbd9d945_1 conda-forge krb5 1.17.2 hbae68bd_0 conda-forge libblas 3.9.0 8_mkl conda-forge libcblas 3.9.0 8_mkl conda-forge libclang 11.0.1 default_h5c34c98_1 conda-forge libcurl 7.71.1 h4b64cdc_8 conda-forge liblapack 3.9.0 8_mkl conda-forge libpng 1.6.37 h1d00b33_2 conda-forge libprotobuf 3.14.0 h7755175_0 conda-forge libssh2 1.9.0 hb06d900_5 conda-forge libtiff 4.2.0 hc10be44_0 conda-forge lz4-c 1.9.3 h8ffe710_0 conda-forge m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge markdown 3.3.3 pyh9f0ad1d_0 conda-forge matplotlib 3.2.2 1 conda-forge matplotlib-base 3.2.2 py38hbe5506b_1 conda-forge mkl 2020.4 hb70f87d_311 conda-forge msys2-conda-epoch 20160418 1 conda-forge multidict 5.1.0 py38h294d835_1 conda-forge numpy 1.20.0 py38h0cc643e_0 conda-forge nvidia-ml-py3 7.352.1 pypi_0 pypi oauthlib 3.0.1 py_0 conda-forge olefile 0.46 pyh9f0ad1d_1 conda-forge opencv-python 4.5.1.48 pypi_0 pypi openssl 1.1.1i h8ffe710_0 conda-forge opt_einsum 3.3.0 py_0 conda-forge pathlib 1.0.1 py38haa244fe_4 conda-forge pillow 8.1.0 py38hf7ce48b_1 conda-forge pip 21.0.1 pyhd8ed1ab_0 conda-forge protobuf 3.14.0 py38h885f38d_1 conda-forge psutil 5.8.0 py38h294d835_1 conda-forge pyasn1 0.4.8 py_0 conda-forge pyasn1-modules 0.2.7 py_0 conda-forge pycparser 2.20 pyh9f0ad1d_2 conda-forge pyjwt 2.0.1 pyhd8ed1ab_0 conda-forge pyopenssl 20.0.1 pyhd8ed1ab_0 conda-forge pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge pyqt 5.12.3 py38haa244fe_7 conda-forge pyqt-impl 5.12.3 py38h885f38d_7 conda-forge pyqt5-sip 4.19.18 py38h885f38d_7 conda-forge pyqtchart 5.12 py38h885f38d_7 conda-forge pyqtwebengine 5.12.1 py38h885f38d_7 conda-forge pyreadline 2.1 py38haa244fe_1003 conda-forge pysocks 1.7.1 py38haa244fe_3 conda-forge python 3.8.6 h7840368_5_cpython conda-forge python-dateutil 2.8.1 py_0 conda-forge python_abi 3.8 1_cp38 conda-forge pywin32 300 py38h294d835_0 conda-forge qt 5.12.9 h5909a2a_3 conda-forge requests 2.25.1 pyhd3deb0d_0 conda-forge requests-oauthlib 1.3.0 pyh9f0ad1d_0 conda-forge rsa 4.7 pyhd3deb0d_0 conda-forge scikit-learn 0.24.1 py38ha09990b_0 conda-forge scipy 1.6.0 py38h5f893b4_0 conda-forge setuptools 49.6.0 py38haa244fe_3 conda-forge six 1.15.0 pyh9f0ad1d_0 conda-forge sqlite 3.34.0 h8ffe710_0 conda-forge tensorboard 2.4.1 pyhd8ed1ab_0 conda-forge tensorboard-plugin-wit 1.8.0 pyh44b312d_0 conda-forge tensorflow 2.3.0 mkl_py38h8c0d9a2_0
tensorflow-base 2.3.0 eigen_py38h75a453f_0
tensorflow-estimator 2.4.0 pyh9656e83_0 conda-forge termcolor 1.1.0 py_2 conda-forge threadpoolctl 2.1.0 pyh5ca1d4c_0 conda-forge tk 8.6.10 h8ffe710_1 conda-forge tornado 6.1 py38h294d835_1 conda-forge tqdm 4.56.0 pyhd8ed1ab_0 conda-forge typing-extensions 3.7.4.3 0 conda-forge typing_extensions 3.7.4.3 py_0 conda-forge urllib3 1.26.3 pyhd8ed1ab_0 conda-forge vc 14.2 hb210afc_2 conda-forge vs2015_runtime 14.28.29325 h5e1d092_0 conda-forge werkzeug 1.0.1 pyh9f0ad1d_0 conda-forge wheel 0.36.2 pyhd3deb0d_0 conda-forge win_inet_pton 1.1.0 py38haa244fe_2 conda-forge wincertstore 0.2 py38haa244fe_1006 conda-forge wrapt 1.12.1 py38h294d835_3 conda-forge xz 5.2.5 h62dcd97_1 conda-forge yarl 1.6.3 py38h294d835_1 conda-forge zipp 3.4.0 py_0 conda-forge zlib 1.2.11 h62dcd97_1010 conda-forge zstd 1.4.8 h4e2f164_1 conda-forge ================= Configs ================== --------- .faceswap --------- backend: cpu --------- convert.ini --------- [color.color_transfer] clip: True preserve_paper: True [color.manual_balance] colorspace: HSV balance_1: 0.0 balance_2: 0.0 balance_3: 0.0 contrast: 0.0 brightness: 0.0 [color.match_hist] threshold: 99.0 [mask.box_blend] type: gaussian distance: 11.0 radius: 5.0 passes: 1 [mask.mask_blend] type: normalized kernel_size: 3 passes: 4 threshold: 4 erosion: 0.0 [scaling.sharpen] method: none amount: 150 radius: 0.3 threshold: 5.0 [writer.ffmpeg] container: mp4 codec: libx264 crf: 23 preset: medium tune: none profile: auto level: auto skip_mux: False [writer.gif] fps: 25 loop: 0 palettesize: 256 subrectangles: False [writer.opencv] format: png draw_transparent: False jpg_quality: 75 png_compress_level: 3 [writer.pillow] format: png draw_transparent: False optimize: False gif_interlace: True jpg_quality: 75 png_compress_level: 3 tif_compression: tiff_deflate --------- extract.ini --------- [global] allow_growth: False [align.fan] batch-size: 12 [detect.cv2_dnn] confidence: 50 [detect.mtcnn] minsize: 20 threshold_1: 0.6 threshold_2: 0.7 threshold_3: 0.7 scalefactor: 0.709 batch-size: 8 [detect.s3fd] confidence: 70 batch-size: 4 [mask.unet_dfl] batch-size: 8 [mask.vgg_clear] batch-size: 6 [mask.vgg_obstructed] batch-size: 2 --------- gui.ini --------- [global] fullscreen: False tab: extract options_panel_width: 30 console_panel_height: 20 icon_size: 14 font: default font_size: 9 autosave_last_session: prompt timeout: 120 auto_load_model_stats: True --------- train.ini --------- [global] centering: face coverage: 68.75 icnr_init: False conv_aware_init: False optimizer: adam learning_rate: 5e-05 reflect_padding: False allow_growth: False mixed_precision: False convert_batchsize: 16 [global.loss] loss_function: ssim mask_loss_function: mse l2_reg_term: 100 eye_multiplier: 3 mouth_multiplier: 2 penalized_mask_loss: True mask_type: extended mask_blur_kernel: 3 mask_threshold: 4 learn_mask: False [model.dfaker] output_size: 128 [model.dfl_h128] lowmem: False [model.dfl_sae] input_size: 128 clipnorm: True architecture: df autoencoder_dims: 0 encoder_dims: 42 decoder_dims: 21 multiscale_decoder: False [model.dlight] features: best details: good output_size: 256 [model.original] lowmem: False [model.realface] input_size: 64 output_size: 128 dense_nodes: 1536 complexity_encoder: 128 complexity_decoder: 512 [model.unbalanced] input_size: 128 lowmem: False clipnorm: True nodes: 1024 complexity_encoder: 128 complexity_decoder_a: 384 complexity_decoder_b: 512 [model.villain] lowmem: False [trainer.original] preview_images: 14 zoom_amount: 5 rotation_range: 10 shift_range: 5 flip_chance: 50 disable_warp: False color_lightness: 30 color_ab: 8 color_clahe_chance: 50 color_clahe_max_size: 4

Thank you for your help.

User avatar
valindis
Posts: 2
Joined: Mon Feb 08, 2021 12:42 am

Re: Cannot convert a symbolic Tensor

Post by valindis »

I actually found a solution. The error comes from numpy version 1.20.
I have reinstalled numpy with the following command and now it works well.

Code: Select all

conda install numpy==1.19.5
User avatar
madpuppy1961
Posts: 2
Joined: Thu Jan 07, 2021 1:44 am

Re: Cannot convert a symbolic Tensor

Post by madpuppy1961 »

  • numpy==1.19.5 is no longer available. Any idea where I can find it?
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 622 times

Re: Cannot convert a symbolic Tensor

Post by torzdf »

[mention]madpuppy1961[/mention] Are you having the same issue?

If so, I will look to pin the requirement within Faceswap and it should prevent this issue.

My word is final

Locked