Installed following MacOS instructions on GitHub/FaceSwap and received the Go signal
Code: Select all
You are good to go.
Enter: 'python faceswap.py -h' to see the options
'python faceswap.py gui' to launch the GUI
Entered python faceswap.py -h and received the following error:
Code: Select all
Setting Faceswap backend to APPLE_SILICON
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xf
ImportError: numpy.core._multiarray_umath failed to import
ImportError: numpy.core.umath failed to import
Traceback (most recent call last):
File "/Users/obelix/faceswap/faceswap.py", line 6, in <module>
from lib.cli import args as cli_args
File "/Users/obelix/faceswap/lib/cli/args.py", line 15, in <module>
from lib.gpu_stats import GPUStats
File "/Users/obelix/faceswap/lib/gpu_stats/__init__.py", line 20, in <module>
from .apple_silicon import AppleSiliconStats as GPUStats # type:ignore
File "/Users/obelix/faceswap/lib/gpu_stats/apple_silicon.py", line 7, in <module>
import tensorflow as tf
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/__init__.py", line 37, in <module>
from tensorflow.python.tools import module_util as _module_util
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/__init__.py", line 42, in <module>
from tensorflow.python import data
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/data/__init__.py", line 21, in <module>
from tensorflow.python.data import experimental
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/data/experimental/__init__.py", line 96, in <module>
from tensorflow.python.data.experimental import service
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/data/experimental/service/__init__.py", line 419, in <module>
from tensorflow.python.data.experimental.ops.data_service_ops import distribute
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/data/experimental/ops/data_service_ops.py", line 24, in <module>
from tensorflow.python.data.experimental.ops import compression_ops
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/data/experimental/ops/compression_ops.py", line 16, in <module>
from tensorflow.python.data.util import structure
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/data/util/structure.py", line 23, in <module>
from tensorflow.python.data.util import nest
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/data/util/nest.py", line 36, in <module>
from tensorflow.python.framework import sparse_tensor as _sparse_tensor
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/framework/sparse_tensor.py", line 24, in <module>
from tensorflow.python.framework import constant_op
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/framework/constant_op.py", line 25, in <module>
from tensorflow.python.eager import execute
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/eager/execute.py", line 23, in <module>
from tensorflow.python.framework import dtypes
File "/Users/obelix/miniforge3/envs/faceswap/lib/python3.9/site-packages/tensorflow/python/framework/dtypes.py", line 34, in <module>
_np_bfloat16 = _pywrap_bfloat16.TF_bfloat16_type()
TypeError: Unable to convert function return value to a Python type! The signature was
() -> handle
Looks like downloaded version of numpy isn't high enough?