felixrosberg/FaceDancer

Seems to run fine but just copies input without swapping faces

IUsedToBeAPygmy opened this issue · 0 comments

I don't see any weird errors, but it isn't working - the generated image is just a copy of the source image..
Any suggestions on what could be wrong would greatly be appreciated!


(facedancer) D:\tmp\FaceDancer>python test_image_swap_multi.py --facedancer_path "./model_zoo/FaceDancer_config_c_HQ.h5" --img_path "./videos/Capture.PNG" --swap_source "./faces/r1.jpg" --img_output "results/swapped_image.jpg"
2023-10-12 14:44:56.342945: I tensorflow/c/logging.cc:34] Successfully opened dynamic library C:\Users\joep.meloen\AppData\Local\anaconda3\envs\facedancer\lib\site-packages\tensorflow-plugins/directml/directml.d6f03b303ac3c4f2eeb8ca631688c9757b361310.dll
2023-10-12 14:44:56.344056: I tensorflow/c/logging.cc:34] Successfully opened dynamic library dxgi.dll
2023-10-12 14:44:56.353184: I tensorflow/c/logging.cc:34] Successfully opened dynamic library d3d12.dll
2023-10-12 14:44:56.673898: I tensorflow/c/logging.cc:34] DirectML device enumeration: found 1 compatible adapters.
C:\Users\joep.meloen\AppData\Local\anaconda3\envs\facedancer\lib\site-packages\tensorflow_addons\utils\tfa_eol_msg.py:23: UserWarning:

TensorFlow Addons (TFA) has ended development and introduction of new features.
TFA has entered a minimal maintenance and release mode until a planned end of life in May 2024.
Please modify downstream libraries to take dependencies from other repositories in our TensorFlow community (e.g. Keras, Keras-CV, and Keras-NLP).

For more information see: tensorflow/addons#2807

warnings.warn(
C:\Users\joep.meloen\AppData\Local\anaconda3\envs\facedancer\lib\site-packages\tensorflow_addons\utils\ensure_tf_install.py:53: UserWarning: Tensorflow Addons supports using Python ops for all Tensorflow versions above or equal to 2.11.0 and strictly below 2.14.0 (nightly versions are not supported).
The versions of TensorFlow you are currently using is 2.10.0 and is not supported.
Some things might work, some things might not.
If you were to encounter a bug, do not file an issue.
If you want to make sure you're using a tested and supported configuration, either change the TensorFlow version or the TensorFlow Addons's version.
You can find the compatibility matrix in TensorFlow Addon's readme:
https://github.com/tensorflow/addons
warnings.warn(

Initializing FaceDancer...
2023-10-12 14:44:57.783563: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-10-12 14:44:57.784499: I tensorflow/c/logging.cc:34] DirectML: creating device on adapter 0 (NVIDIA GeForce RTX 3080)
2023-10-12 14:44:57.940312: I tensorflow/c/logging.cc:34] Successfully opened dynamic library Kernel32.dll
2023-10-12 14:44:57.941198: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
2023-10-12 14:44:57.943296: W tensorflow/core/common_runtime/pluggable_device/pluggable_device_bfc_allocator.cc:28] Overriding allow_growth setting because force_memory_growth was requested by the device.
2023-10-12 14:44:57.944080: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:272] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 69486 MB memory) -> physical PluggableDevice (device: 0, name: DML, pci bus id: )

Processing: ./videos/Capture.PNG
2023-10-12 14:45:04.558399: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
2023-10-12 14:45:04.558633: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:272] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 69486 MB memory) -> physical PluggableDevice (device: 0, name: DML, pci bus id: )
2023-10-12 14:45:04.564376: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
2023-10-12 14:45:04.564510: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:272] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 69486 MB memory) -> physical PluggableDevice (device: 0, name: DML, pci bus id: )
2023-10-12 14:45:04.913433: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
2023-10-12 14:45:04.913610: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:272] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 69486 MB memory) -> physical PluggableDevice (device: 0, name: DML, pci bus id: )
2023-10-12 14:45:04.997959: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
2023-10-12 14:45:04.998107: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:272] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 69486 MB memory) -> physical PluggableDevice (device: 0, name: DML, pci bus id: )
2023-10-12 14:45:05.007402: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
2023-10-12 14:45:05.007547: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:272] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 69486 MB memory) -> physical PluggableDevice (device: 0, name: DML, pci bus id: )
2023-10-12 14:45:05.012679: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
2023-10-12 14:45:05.013502: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:272] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 69486 MB memory) -> physical PluggableDevice (device: 0, name: DML, pci bus id: )
2023-10-12 14:45:05.017521: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
2023-10-12 14:45:05.017697: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:272] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 69486 MB memory) -> physical PluggableDevice (device: 0, name: DML, pci bus id: )
2023-10-12 14:45:05.612896: I tensorflow/core/grappler/optimizers/custom_graph_optimizer_registry.cc:114] Plugin optimizer for device_type GPU is enabled.
2023-10-12 14:45:07.147472: I tensorflow/core/grappler/optimizers/custom_graph_optimizer_registry.cc:114] Plugin optimizer for device_type GPU is enabled.

Done! results/swapped_image.jpg