aashishrai3799 / Towards-Realistic-Generative-3D-Face-Models

3D face model that can generate high-quality mesh and texture
Other
252 stars 20 forks source link

weights in 'insightface' ? DECA pre-trained weights? #9

Open BlockchainPunks opened 9 months ago

BlockchainPunks commented 9 months ago

can you please indicate in your setup instructions which file needs to be copied? you refer to weights but its unclear which file is the exact weight file.

Extract:

Follow [MICA] to download insightface and MICA pre-trained models. Put the weights in 'insightface' and 'data/mica_pretrained' folders, respectively. Follow [DECA] to download DECA pre-trained weights. Put them in the 'data' folder.

Download AlbedoGAN modified weights from the following

aashishrai3799 commented 9 months ago

Hi, please replace all the files available in the "modified weights" Gdrive folder to ensure proper use of modified weights.

BlockchainPunks commented 9 months ago

Hi, please replace all the files available in the "modified weights" Gdrive folder to ensure proper use of modified weights.

Please confirm this is correct MICA : MICA Pretrained model: Download the pretrained model using this link: MPI-IS storage server. drop the mica.tar file into data/mica_pretrained Screenshot:

micatarFile

Insightface models: We are required to download the following two .zip files from https://github.com/Zielon/MICA: antelopev2 buffalo_l

Unzip them into a new folder at root of project called insightface Antelope exact folder structure required: Screenshot:

Insightface_AntelopeZipFile

Buffalo exact folder structure required: Screenshot:

Insightface_BuffaloZipFile
BlockchainPunks commented 9 months ago

Hi, please replace all the files available in the "modified weights" Gdrive folder to ensure proper use of modified weights.

Can you confirm my screenshots above are correct please.

aashishrai3799 commented 9 months ago

HI, yes. that looks kay.

BlockchainPunks commented 9 months ago

HI, yes. that looks kay.

Please confirm no other additional files are need to be copied over from other repos for it to work 100%

if you or anyone else downloaded the repo and and followed the screenshots about then ran your scripts it should work first time??

BlockchainPunks commented 9 months ago

HI, yes. that looks kay. So used above setup you indicated is ok however environment script fails with errors - whats this about: (base) myserver@DESKTOP-PMO5S8G:~/AlbedoGan$ conda env create -f environment.yaml Collecting package metadata (repodata.json): / WARNING conda.models.version:get_matcher(556): Using . with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.7.1., but conda is ignoring the . and treating it as 1.7.1 WARNING conda.models.version:get_matcher(556): Using . with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.9.0., but conda is ignoring the . and treating it as 1.9.0 WARNING conda.models.version:get_matcher(556): Using . with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.8.0., but conda is ignoring the . and treating it as 1.8.0 WARNING conda.models.version:get_matcher(556): Using . with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.6.0., but conda is ignoring the . and treating it as 1.6.0 done Solving environment: done

==> WARNING: A newer version of conda exists. <== current version: 23.7.4 latest version: 23.11.0

Please update conda by running

$ conda update -n base -c defaults conda

Or to minimize the number of packages updated during conda update use

 conda install conda=23.11.0

Downloading and Extracting Packages

Preparing transaction: done Verifying transaction: done Executing transaction: / By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html

done Installing pip dependencies: - Ran pip subprocess with arguments: ['/home/myserver/anaconda3/envs/new_torchenva/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/myserver/AlbedoGan/condaenv._mzq2n19.requirements.txt', '--exists-action=b'] Pip subprocess output: Collecting albumentations==1.3.0 Using cached albumentations-1.3.0-py3-none-any.whl (123 kB) Collecting coloredlogs==15.0.1 Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB) Collecting contourpy==1.0.5 Using cached contourpy-1.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (295 kB) Collecting cycler==0.11.0 Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB) Collecting cython==0.29.34 Using cached Cython-0.29.34-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (2.0 MB) Collecting easydict==1.10 Using cached easydict-1.10-py3-none-any.whl Collecting flatbuffers==23.3.3 Using cached flatbuffers-23.3.3-py2.py3-none-any.whl (26 kB) Collecting fonttools==4.37.4 Using cached fonttools-4.37.4-py3-none-any.whl (960 kB) Collecting humanfriendly==10.0 Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB) Collecting imageio==2.22.1 Using cached imageio-2.22.1-py3-none-any.whl (3.4 MB) Collecting insightface==0.7.3 Using cached insightface-0.7.3.tar.gz (439 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting joblib==1.2.0 Using cached joblib-1.2.0-py3-none-any.whl (297 kB) Collecting kiwisolver==1.4.4 Using cached kiwisolver-1.4.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.2 MB) Collecting kornia==0.6.9 Using cached kornia-0.6.9-py2.py3-none-any.whl (569 kB) Collecting loguru==0.7.0 Using cached loguru-0.7.0-py3-none-any.whl (59 kB) Collecting matplotlib==3.6.1 Using cached matplotlib-3.6.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.4 MB) Collecting mpmath==1.3.0 Using cached mpmath-1.3.0-py3-none-any.whl (536 kB) Collecting networkx==2.8.7 Using cached networkx-2.8.7-py3-none-any.whl (2.0 MB) Collecting numpy==1.23.4 Using cached numpy-1.23.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB) Collecting onnx==1.13.1 Using cached onnx-1.13.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.5 MB) Collecting onnxruntime==1.14.1 Using cached onnxruntime-1.14.1-cp38-cp38-manylinux_2_27_x86_64.whl (5.0 MB) Collecting opencv-python==4.6.0.66 Using cached opencv_python-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (60.9 MB) Collecting opencv-python-headless==4.7.0.72 Using cached opencv_python_headless-4.7.0.72-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (49.2 MB) Collecting packaging==21.3 Using cached packaging-21.3-py3-none-any.whl (40 kB) Collecting pillow==9.2.0 Using cached Pillow-9.2.0-cp38-cp38-manylinux_2_28_x86_64.whl (3.2 MB) Collecting prettytable==3.7.0 Using cached prettytable-3.7.0-py3-none-any.whl (27 kB) Collecting protobuf==3.20.3 Using cached protobuf-3.20.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB) Collecting pyparsing==3.0.9 Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB) Collecting python-dateutil==2.8.2 Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting pywavelets==1.4.1 Using cached PyWavelets-1.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.9 MB) Collecting pyyaml==6.0 Using cached PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701 kB) Collecting qudida==0.0.4 Using cached qudida-0.0.4-py3-none-any.whl (3.5 kB) Collecting scikit-image==0.19.3 Using cached scikit_image-0.19.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.0 MB) Collecting scikit-learn==1.2.2 Using cached scikit_learn-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.8 MB) Collecting scipy==1.9.2 Using cached scipy-1.9.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (33.8 MB) Collecting six==1.16.0 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting sympy==1.11.1 Using cached sympy-1.11.1-py3-none-any.whl (6.5 MB) Collecting threadpoolctl==3.1.0 Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB) Collecting tifffile==2022.10.10 Using cached tifffile-2022.10.10-py3-none-any.whl (210 kB) Collecting torch==1.12.1 Using cached torch-1.12.1-cp38-cp38-manylinux1_x86_64.whl (776.3 MB) Collecting torchfile==0.1.0 Using cached torchfile-0.1.0-py3-none-any.whl Collecting torchvision==0.13.1 Using cached torchvision-0.13.1-cp38-cp38-manylinux1_x86_64.whl (19.1 MB) Collecting tqdm==4.64.1 Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB) Collecting urllib3==1.26.12 Using cached urllib3-1.26.12-py2.py3-none-any.whl (140 kB) Collecting wcwidth==0.2.6 Using cached wcwidth-0.2.6-py2.py3-none-any.whl (29 kB) Collecting yacs==0.1.8 Using cached yacs-0.1.8-py3-none-any.whl (14 kB) Requirement already satisfied: requests in /home/myserver/anaconda3/envs/new_torchenva/lib/python3.8/site-packages (from insightface==0.7.3->-r /home/myserver/AlbedoGan/condaenv._mzq2n19.requirements.txt (line 11)) (2.28.1) Requirement already satisfied: typing-extensions>=3.6.2.1 in /home/myserver/anaconda3/envs/new_torchenva/lib/python3.8/site-packages (from onnx==1.13.1->-r /home/myserver/AlbedoGan/condaenv._mzq2n19.requirements.txt (line 20)) (4.3.0) Requirement already satisfied: certifi>=2017.4.17 in /home/myserver/anaconda3/envs/new_torchenva/lib/python3.8/site-packages (from requests->insightface==0.7.3->-r /home/myserver/AlbedoGan/condaenv._mzq2n19.requirements.txt (line 11)) (2022.12.7) Requirement already satisfied: charset-normalizer<3,>=2 in /home/myserver/anaconda3/envs/new_torchenva/lib/python3.8/site-packages (from requests->insightface==0.7.3->-r /home/myserver/AlbedoGan/condaenv._mzq2n19.requirements.txt (line 11)) (2.1.1) Requirement already satisfied: idna<4,>=2.5 in /home/myserver/anaconda3/envs/new_torchenva/lib/python3.8/site-packages (from requests->insightface==0.7.3->-r /home/myserver/AlbedoGan/condaenv._mzq2n19.requirements.txt (line 11)) (3.4) Building wheels for collected packages: insightface Building wheel for insightface (pyproject.toml): started Building wheel for insightface (pyproject.toml): finished with status 'error' Failed to build insightface

Pip subprocess error: error: subprocess-exited-with-error

× Building wheel for insightface (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [221 lines of output] WARNING: pandoc not enabled running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-38 creating build/lib.linux-x86_64-cpython-38/insightface copying insightface/init.py -> build/lib.linux-x86_64-cpython-38/insightface creating build/lib.linux-x86_64-cpython-38/insightface/thirdparty copying insightface/thirdparty/init.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty creating build/lib.linux-x86_64-cpython-38/insightface/data copying insightface/data/rec_builder.py -> build/lib.linux-x86_64-cpython-38/insightface/data copying insightface/data/init.py -> build/lib.linux-x86_64-cpython-38/insightface/data copying insightface/data/pickle_object.py -> build/lib.linux-x86_64-cpython-38/insightface/data copying insightface/data/image.py -> build/lib.linux-x86_64-cpython-38/insightface/data creating build/lib.linux-x86_64-cpython-38/insightface/utils copying insightface/utils/storage.py -> build/lib.linux-x86_64-cpython-38/insightface/utils copying insightface/utils/constant.py -> build/lib.linux-x86_64-cpython-38/insightface/utils copying insightface/utils/filesystem.py -> build/lib.linux-x86_64-cpython-38/insightface/utils copying insightface/utils/init.py -> build/lib.linux-x86_64-cpython-38/insightface/utils copying insightface/utils/download.py -> build/lib.linux-x86_64-cpython-38/insightface/utils copying insightface/utils/transform.py -> build/lib.linux-x86_64-cpython-38/insightface/utils copying insightface/utils/face_align.py -> build/lib.linux-x86_64-cpython-38/insightface/utils creating build/lib.linux-x86_64-cpython-38/insightface/commands copying insightface/commands/insightface_cli.py -> build/lib.linux-x86_64-cpython-38/insightface/commands copying insightface/commands/init.py -> build/lib.linux-x86_64-cpython-38/insightface/commands copying insightface/commands/rec_add_mask_param.py -> build/lib.linux-x86_64-cpython-38/insightface/commands copying insightface/commands/model_download.py -> build/lib.linux-x86_64-cpython-38/insightface/commands creating build/lib.linux-x86_64-cpython-38/insightface/app copying insightface/app/face_analysis.py -> build/lib.linux-x86_64-cpython-38/insightface/app copying insightface/app/common.py -> build/lib.linux-x86_64-cpython-38/insightface/app copying insightface/app/init.py -> build/lib.linux-x86_64-cpython-38/insightface/app copying insightface/app/mask_renderer.py -> build/lib.linux-x86_64-cpython-38/insightface/app creating build/lib.linux-x86_64-cpython-38/insightface/model_zoo copying insightface/model_zoo/retinaface.py -> build/lib.linux-x86_64-cpython-38/insightface/model_zoo copying insightface/model_zoo/arcface_onnx.py -> build/lib.linux-x86_64-cpython-38/insightface/model_zoo copying insightface/model_zoo/scrfd.py -> build/lib.linux-x86_64-cpython-38/insightface/model_zoo copying insightface/model_zoo/model_store.py -> build/lib.linux-x86_64-cpython-38/insightface/model_zoo copying insightface/model_zoo/model_zoo.py -> build/lib.linux-x86_64-cpython-38/insightface/model_zoo copying insightface/model_zoo/init.py -> build/lib.linux-x86_64-cpython-38/insightface/model_zoo copying insightface/model_zoo/attribute.py -> build/lib.linux-x86_64-cpython-38/insightface/model_zoo copying insightface/model_zoo/landmark.py -> build/lib.linux-x86_64-cpython-38/insightface/model_zoo copying insightface/model_zoo/inswapper.py -> build/lib.linux-x86_64-cpython-38/insightface/model_zoo creating build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d copying insightface/thirdparty/face3d/init.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d creating build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/io.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/vis.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/light.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/init.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/render.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/transform.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh creating build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/io.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/vis.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/light.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/init.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/render.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/transform.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh_numpy creating build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/morphable_model copying insightface/thirdparty/face3d/morphable_model/morphabel_model.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/morphable_model copying insightface/thirdparty/face3d/morphable_model/init.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/morphable_model copying insightface/thirdparty/face3d/morphable_model/load.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/morphable_model copying insightface/thirdparty/face3d/morphable_model/fit.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/morphable_model running egg_info writing insightface.egg-info/PKG-INFO writing dependency_links to insightface.egg-info/dependency_links.txt writing entry points to insightface.egg-info/entry_points.txt writing requirements to insightface.egg-info/requires.txt writing top-level names to insightface.egg-info/top_level.txt reading manifest file 'insightface.egg-info/SOURCES.txt' writing manifest file 'insightface.egg-info/SOURCES.txt' creating build/lib.linux-x86_64-cpython-38/insightface/data/images copying insightface/data/images/Tom_Hanks_54745.png -> build/lib.linux-x86_64-cpython-38/insightface/data/images copying insightface/data/images/mask_black.jpg -> build/lib.linux-x86_64-cpython-38/insightface/data/images copying insightface/data/images/mask_blue.jpg -> build/lib.linux-x86_64-cpython-38/insightface/data/images copying insightface/data/images/mask_green.jpg -> build/lib.linux-x86_64-cpython-38/insightface/data/images copying insightface/data/images/mask_white.jpg -> build/lib.linux-x86_64-cpython-38/insightface/data/images copying insightface/data/images/t1.jpg -> build/lib.linux-x86_64-cpython-38/insightface/data/images creating build/lib.linux-x86_64-cpython-38/insightface/data/objects copying insightface/data/objects/meanshape_68.pkl -> build/lib.linux-x86_64-cpython-38/insightface/data/objects creating build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh/cython copying insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh/cython copying insightface/thirdparty/face3d/mesh/cython/mesh_core.h -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh/cython copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.c -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh/cython copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh/cython copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.pyx -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh/cython copying insightface/thirdparty/face3d/mesh/cython/setup.py -> build/lib.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh/cython running build_ext building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension creating build/temp.linux-x86_64-cpython-38 creating build/temp.linux-x86_64-cpython-38/insightface creating build/temp.linux-x86_64-cpython-38/insightface/thirdparty creating build/temp.linux-x86_64-cpython-38/insightface/thirdparty/face3d creating build/temp.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh creating build/temp.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh/cython gcc -pthread -B /home/myserver/anaconda3/envs/new_torchenva/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Iinsightface/thirdparty/face3d/mesh/cython -I/tmp/pip-build-env-18ajx7l8/overlay/lib/python3.8/site-packages/numpy/core/include -I/home/myserver/anaconda3/envs/new_torchenva/include/python3.8 -c insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -o build/temp.linux-x86_64-cpython-38/insightface/thirdparty/face3d/mesh/cython/mesh_core.o /tmp/pip-build-env-18ajx7l8/overlay/lib/python3.8/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'insightface.data.images' is absent from the packages configuration. !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.images' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.images' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.data.images' to be distributed and are
          already explicitly excluding 'insightface.data.images' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  /tmp/pip-build-env-18ajx7l8/overlay/lib/python3.8/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'insightface.data.objects' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.objects' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.objects' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.data.objects' to be distributed and are
          already explicitly excluding 'insightface.data.objects' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  /tmp/pip-build-env-18ajx7l8/overlay/lib/python3.8/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.thirdparty.face3d.mesh.cython' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.thirdparty.face3d.mesh.cython' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.thirdparty.face3d.mesh.cython' to be distributed and are
          already explicitly excluding 'insightface.thirdparty.face3d.mesh.cython' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  error: command 'gcc' failed: Permission denied
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for insightface ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects

failed

CondaEnvException: Pip failed