Comments (4)
Description
Unable to install two libraries:
dlib-bin
andonnxruntime-gpu
on MacBook M2 ProEnv
- Python Version: 3.10.9
- macOS Version: 13.5.2
- pip version: 23.2.1
Steps to Reproduce
- Clone the repo
- Run
python -m venv venv
.- Run
source venv/bin/activate
.- Run
pip install -r requirments.txt
.Expected Behavior
The libraries should be installed without any issues.
Actual Behavior
For
dlib-bin
:ERROR: Could not find a version that satisfies the requirement dlib-bin (from versions: none) ERROR: No matching distribution found for dlib-bin
For
onnxruntime-gpu
(it's not a part of the requirments.txt, so I'm not sure I need it):ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu (from versions: none) ERROR: No matching distribution found for onnxruntime-gpu
Hello! Apple Silicon doesn't support dlib-bin on them own chipset. You need to install dlib https://pypi.org/project/dlib/ without dlib-bin.
Note: You can install dlib-bin only on MacOS with Intel.
The lib onnxruntime-gpu need to use Face Swapping on GPU, you can install onnxruntime for CPU without onnxruntime-gpu.
from wunjo.wladradchenko.ru.
It look as problem with Thread, I would advice in app.py in first line after import os
set line os.environ['OMP_NUM_THREADS']='1'
. This is line has set limit for threads. Also for test in end of file just comment line FlaskUI(app=app, server="flask").run()
and uncomment the line app.run()
, because it aslo can be problem with FlaskUI on MacOS
from wunjo.wladradchenko.ru.
Thanks for getting back to me so quickly! I switched out dlib-bin
for dlib
in the requirements.txt
and pyproject.toml
files. I also commented out onnxruntime-gpu
in pyproject.toml
.
After doing that, I was able to launch the app successfully. However, when I tried to use the "Animate face and lips" feature, it got stuck. In the UI, it's showing:
Starting animate face from audio coefficient
Starting get audio coefficient
And that's all I'm seeing in the terminal.
Fatal Python error: Segmentation fault
Thread 0x00000002cb007000 (most recent call first):
File "/Users/root/miniconda/lib/python3.10/threading.py", line 324 in wait
File "/Users/root/miniconda/lib/python3.10/threading.py", line 607 in wait
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/tqdm/_monitor.py", line 60 in run
File "/Users/root/miniconda/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
File "/Users/root/miniconda/lib/python3.10/threading.py", line 973 in _bootstrap
Thread 0x00000002c92cb000 (most recent call first):
File "/Users/root/miniconda/lib/python3.10/threading.py", line 320 in wait
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/waitress/task.py", line 72 in handler_thread
File "/Users/root/miniconda/lib/python3.10/threading.py", line 953 in run
File "/Users/root/miniconda/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
File "/Users/root/miniconda/lib/python3.10/threading.py", line 973 in _bootstrap
Thread 0x00000002c82bf000 (most recent call first):
File "/Users/root/miniconda/lib/python3.10/threading.py", line 320 in wait
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/waitress/task.py", line 72 in handler_thread
File "/Users/root/miniconda/lib/python3.10/threading.py", line 953 in run
File "/Users/root/miniconda/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
File "/Users/root/miniconda/lib/python3.10/threading.py", line 973 in _bootstrap
Thread 0x00000002c72b3000 (most recent call first):
File "/Users/root/miniconda/lib/python3.10/threading.py", line 320 in wait
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/waitress/task.py", line 72 in handler_thread
File "/Users/root/miniconda/lib/python3.10/threading.py", line 953 in run
File "/Users/root/miniconda/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
File "/Users/root/miniconda/lib/python3.10/threading.py", line 973 in _bootstrap
Current thread 0x00000002c62a7000 (most recent call first):
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/portable/src/deepfake/src/utils/preprocess.py", line 91 in <listcomp>
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/portable/src/deepfake/src/utils/preprocess.py", line 91 in generate
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/portable/src/deepfake/inference.py", line 242 in main_img_deepfake
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/portable/src/wunjo/app.py", line 445 in synthesize_deepfake
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/flask_cors/decorator.py", line 130 in wrapped_function
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/flask/app.py", line 1469 in dispatch_request
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/flask/app.py", line 1484 in full_dispatch_request
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/flask/app.py", line 2190 in wsgi_app
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/flask/app.py", line 2213 in __call__
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/waitress/task.py", line 434 in execute
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/waitress/task.py", line 168 in service
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/waitress/channel.py", line 428 in service
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/waitress/task.py", line 84 in handler_thread
File "/Users/root/miniconda/lib/python3.10/threading.py", line 953 in run
File "/Users/root/miniconda/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
File "/Users/root/miniconda/lib/python3.10/threading.py", line 973 in _bootstrap
Thread 0x00000001fcee6080 (most recent call first):
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/waitress/wasyncore.py", line 172 in poll
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/waitress/wasyncore.py", line 245 in loop
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/waitress/server.py", line 322 in run
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/waitress/__init__.py", line 19 in serve
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/flaskwebgui.py", line 134 in server
File "/Users/root/miniconda/lib/python3.10/multiprocessing/process.py", line 108 in run
File "/Users/root/miniconda/lib/python3.10/multiprocessing/process.py", line 314 in _bootstrap
File "/Users/root/miniconda/lib/python3.10/multiprocessing/popen_fork.py", line 71 in _launch
File "/Users/root/miniconda/lib/python3.10/multiprocessing/popen_fork.py", line 19 in __init__
File "/Users/root/miniconda/lib/python3.10/multiprocessing/context.py", line 281 in _Popen
File "/Users/root/miniconda/lib/python3.10/multiprocessing/context.py", line 224 in _Popen
File "/Users/root/miniconda/lib/python3.10/multiprocessing/process.py", line 121 in start
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/venv/lib/python3.10/site-packages/flaskwebgui.py", line 265 in run
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/portable/src/wunjo/app.py", line 737 in main
File "/Users/root/Documents/Work/Playground/wunjo.wladradchenko.ru/portable/src/wunjo/__main__.py", line 4 in <module>
File "/Users/root/miniconda/lib/python3.10/runpy.py", line 86 in _run_code
File "/Users/root/miniconda/lib/python3.10/runpy.py", line 96 in _run_module_code
File "/Users/root/miniconda/lib/python3.10/runpy.py", line 224 in run_module
File "<string>", line 1 in <module>
Extension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, torch._C, torch._C._fft, torch._C._linalg, torch._C._nested, torch._C._nn, torch._C._sparse, torch._C._special, markupsafe._speedups, psutil._psutil_osx, psutil._psutil_posix, PIL._imaging, scipy._lib._ccallback_c, scipy.sparse._sparsetools, _csparsetools, scipy.sparse._csparsetools, scipy.sparse.linalg._isolve._iterative, scipy.linalg._fblas, scipy.linalg._flapack, scipy.linalg.cython_lapack, scipy.linalg._cythonized_array_utils, scipy.linalg._solve_toeplitz, scipy.linalg._decomp_lu_cython, scipy.linalg._matfuncs_sqrtm_triu, scipy.linalg.cython_blas, scipy.linalg._matfuncs_expm, scipy.linalg._decomp_update, scipy.linalg._flinalg, scipy.sparse.linalg._dsolve._superlu, scipy.sparse.linalg._eigen.arpack._arpack, scipy.sparse.csgraph._tools, scipy.sparse.csgraph._shortest_path, scipy.sparse.csgraph._traversal, scipy.sparse.csgraph._min_spanning_tree, scipy.sparse.csgraph._flow, scipy.sparse.csgraph._matching, scipy.sparse.csgraph._reordering, scipy.io.matlab._mio_utils, scipy.io.matlab._streams, scipy.io.matlab._mio5_utils, skimage._shared.geometry, charset_normalizer.md, scipy.spatial._ckdtree, scipy._lib.messagestream, scipy.spatial._qhull, scipy.spatial._voronoi, scipy.spatial._distance_wrap, scipy.spatial._hausdorff, scipy.special._ufuncs_cxx, scipy.special._ufuncs, scipy.special._specfun, scipy.special._comb, scipy.special._ellip_harm_2, scipy.spatial.transform._rotation, skimage.draw._draw, skimage.transform._hough_transform, scipy.interpolate._fitpack, scipy.interpolate.dfitpack, scipy.optimize._minpack2, scipy.optimize._group_columns, scipy.optimize._trlib._trlib, numpy.linalg.lapack_lite, scipy.optimize._lbfgsb, _moduleTNC, scipy.optimize._moduleTNC, scipy.optimize._cobyla, scipy.optimize._slsqp, scipy.optimize._minpack, scipy.optimize._lsq.givens_elimination, scipy.optimize._zeros, scipy.optimize.__nnls, scipy.optimize._highs.cython.src._highs_wrapper, scipy.optimize._highs._highs_wrapper, scipy.optimize._highs.cython.src._highs_constants, scipy.optimize._highs._highs_constants, scipy.linalg._interpolative, scipy.optimize._bglu_dense, scipy.optimize._lsap, scipy.optimize._direct, scipy.interpolate._bspl, scipy.interpolate._ppoly, scipy.interpolate.interpnd, scipy.interpolate._rbfinterp_pythran, scipy.interpolate._rgi_cython, scipy._lib._uarray._uarray, scipy.ndimage._nd_image, _ni_label, scipy.ndimage._ni_label, skimage.transform._warps_cy, skimage.measure._find_contours_cy, skimage.measure._marching_cubes_lewiner_cy, skimage.measure._moments_cy, scipy.signal._sigtools, scipy.signal._max_len_seq_inner, scipy.signal._upfirdn_apply, scipy.signal._spline, scipy.integrate._odepack, scipy.integrate._quadpack, scipy.integrate._vode, scipy.integrate._dop, scipy.integrate._lsoda, scipy.signal._sosfilt, scipy.signal._spectral, scipy.special.cython_special, scipy.stats._stats, scipy.stats.beta_ufunc, scipy.stats._boost.beta_ufunc, scipy.stats.binom_ufunc, scipy.stats._boost.binom_ufunc, scipy.stats.nbinom_ufunc, scipy.stats._boost.nbinom_ufunc, scipy.stats.hypergeom_ufunc, scipy.stats._boost.hypergeom_ufunc, scipy.stats.ncf_ufunc, scipy.stats._boost.ncf_ufunc, scipy.stats.ncx2_ufunc, scipy.stats._boost.ncx2_ufunc, scipy.stats.nct_ufunc, scipy.stats._boost.nct_ufunc, scipy.stats.skewnorm_ufunc, scipy.stats._boost.skewnorm_ufunc, scipy.stats.invgauss_ufunc, scipy.stats._boost.invgauss_ufunc, scipy.stats._biasedurn, scipy.stats._levy_stable.levyst, scipy.stats._stats_pythran, scipy.stats._statlib, scipy.stats._sobol, scipy.stats._qmc_cy, scipy.stats._mvn, scipy.stats._rcont.rcont, scipy.signal._peak_finding_utils, skimage.measure._pnpoly, skimage.measure._ccomp, skimage.transform._radon_transform, yaml._yaml, numba.core.typeconv._typeconv, numba._helperlib, numba._dynfunc, numba._dispatcher, numba.core.runtime._nrt_python, numba.np.ufunc._internal, numba.experimental.jitclass._box, PIL._imagingft, av._core, av.logging, av.bytesource, av.buffer, av.audio.format, av.enum, av.error, av.utils, av.option, av.descriptor, av.container.pyio, av.dictionary, av.format, av.stream, av.container.streams, av.sidedata.motionvectors, av.sidedata.sidedata, av.packet, av.container.input, av.container.output, av.container.core, av.codec.context, av.video.format, av.video.reformatter, av.plane, av.video.plane, av.video.frame, av.video.stream, av.codec.codec, av.frame, av.audio.layout, av.audio.plane, av.audio.frame, av.audio.stream, av.audio.fifo, av.filter.pad, av.filter.link, av.filter.context, av.filter.graph, av.filter.filter, av.audio.resampler, _cffi_backend, scipy.fftpack.convolve, sklearn.__check_build._check_build, sklearn.utils._isfinite, sklearn.utils.murmurhash, sklearn.utils._openmp_helpers, sklearn.utils._logistic_sigmoid, sklearn.utils.sparsefuncs_fast, sklearn.preprocessing._csr_polynomial_expansion, sklearn.preprocessing._target_encoder_fast, sklearn.utils._random, sklearn.utils._seq_dataset, sklearn.metrics.cluster._expected_mutual_info_fast, sklearn.metrics._dist_metrics, sklearn.metrics._pairwise_distances_reduction._datasets_pair, sklearn.utils._cython_blas, sklearn.metrics._pairwise_distances_reduction._base, sklearn.metrics._pairwise_distances_reduction._middle_term_computer, sklearn.utils._heap, sklearn.utils._sorting, sklearn.metrics._pairwise_distances_reduction._argkmin, sklearn.metrics._pairwise_distances_reduction._argkmin_classmode, sklearn.utils._vector_sentinel, sklearn.metrics._pairwise_distances_reduction._radius_neighbors, sklearn.metrics._pairwise_fast, sklearn.linear_model._cd_fast, sklearn._loss._loss, sklearn.utils.arrayfuncs, sklearn.svm._liblinear, sklearn.svm._libsvm, sklearn.svm._libsvm_sparse, sklearn.utils._weight_vector, sklearn.linear_model._sgd_fast, sklearn.linear_model._sag_fast, sklearn.decomposition._online_lda_fast, sklearn.decomposition._cdnmf_fast, sklearn.utils._fast_dict, sklearn.cluster._hierarchical_fast, sklearn.cluster._k_means_common, sklearn.cluster._k_means_elkan, sklearn.cluster._k_means_lloyd, sklearn.cluster._k_means_minibatch, sklearn.neighbors._partition_nodes, sklearn.neighbors._ball_tree, sklearn.neighbors._kd_tree, sklearn.cluster._dbscan_inner, sklearn.cluster._hdbscan._tree, sklearn.cluster._hdbscan._linkage, sklearn.cluster._hdbscan._reachability, sklearn._isotonic, sklearn.tree._utils, sklearn.tree._tree, sklearn.tree._splitter, sklearn.tree._criterion, sklearn.neighbors._quad_tree, sklearn.manifold._barnes_hut_tsne, sklearn.manifold._utils, sklearn.feature_extraction._hashing_fast, google._upb._message, insightface.thirdparty.face3d.mesh.cython.mesh_core_cython, matplotlib._c_internal_utils, matplotlib._path, kiwisolver._cext, matplotlib._image, pydantic.typing, pydantic.errors, pydantic.version, pydantic.utils, pydantic.class_validators, pydantic.config, pydantic.color, pydantic.datetime_parse, pydantic.validators, pydantic.networks, pydantic.types, pydantic.json, pydantic.error_wrappers, pydantic.fields, pydantic.parse, pydantic.schema, pydantic.main, pydantic.dataclasses, pydantic.annotated_types, pydantic.decorator, pydantic.env_settings, pydantic.tools, pydantic, regex._regex, sklearn.datasets._svmlight_format_fast (total: 286)
from wunjo.wladradchenko.ru.
Thank you for the advice. Uncommenting app.run()
instead of using FlaskUI
did the trick for me.
from wunjo.wladradchenko.ru.
Related Issues (20)
- Прошу помощи с компиляцией на apple silicon m2 HOT 1
- Правки в wiki HOT 1
- Missing library even though it's installed HOT 1
- No GPU driver was found on your computer. HOT 1
- Предложения по проекту HOT 7
- Compile for gpu errors on windows HOT 10
- Windows. A matching Triton is not available HOT 2
- Mac os application won't start HOT 18
- Не создается exe файл в каталоге portable\build после команды briefcase build HOT 3
- Faceswap over Videos gone Bad HOT 2
- Choose a face does not work HOT 3
- Wunjo AI Face and Mouth Animation Results in Cannot Find File Specified Error HOT 6
- Обработка картинки, обращение к неиспользуемому диску HOT 1
- Where are said installers? HOT 1
- Virus warnings for some SatTalker model witch using in Face Animation from Image HOT 2
- Error when running HOT 5
- wrong link in deepfake.json HOT 1
- No module named wunjo HOT 2
- Voice clonning doesn't work in Firefox HOT 2
- Mac OS briefcase run not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wunjo.wladradchenko.ru.