Closed vkeilo closed 2 months ago
When the deepface>=0.0.82, the following error occurs: ImportError: cannot import name 'Facenet512' from 'deepface.basemodels' However, when the deepface<0.0.82, another error occurs: AttributeError: 'tuple' object has no attribute 'shape And I am not sure which specific version is appropriate to use.
The versions of other major dependencies in my current environment are:
scikit-learn==1.5.1 piq==0.8.0 opencv-python==4.10.0.84 tensorflow==2.12.0 deepface==0.0.79 bitsandbytes==0.37.0 diffuser==0.13.1 triton==2.0.0 xformers==0.0.16 transformers==4.26.0 datasets==2.10.1 accelerate==0.25.0 ftfy==6.2.3 tensorboard==2.12.3 Jinja2==3.1.4 tqdm==4.66.5 lpips==0.1.4 cvxpy==1.5.2 wandb==0.17.5 regex==2024.7.24 torch==1.13.1+cu116 torchaudio==0.13.1+cu116 torchvision==0.14.1+cu116
Hi, thank for your feedback. Please try this requirement below. And also refer to the diffShortCut codebase.
absl-py==2.1.0
accelerate==0.25.0
aiohttp==3.9.5
aiosignal==1.3.1
albucore==0.0.12
albumentations==1.4.11
annotated-types==0.7.0
astunparse==1.6.3
async-timeout==4.0.3
attrs==23.2.0
beautifulsoup4==4.12.3
-e git+https://github.com/bitsandbytes-foundation/bitsandbytes@0bdd57ccb20e9690b95c2fa02315d9507afa69dd#egg=bitsandbytes
blinker==1.8.2
cachetools==5.4.0
clarabel==0.9.0
click==8.1.7
clip @ git+https://github.com/openai/CLIP.git@dcba3cb2e2827b402d2701e7e1c7d9fed8a20ef1
coloredlogs==15.0.1
contourpy==1.2.1
cvxpy==1.5.2
cycler==0.12.1
Cython==3.0.10
datasets==2.10.1
deepface==0.0.79
diffusers==0.22.1
dill==0.3.6
docker-pycreds==0.4.0
easydict==1.13
ecos==2.0.14
einops==0.8.0
eval_type_backport==0.2.0
exceptiongroup==1.2.2
fire==0.6.0
Flask==3.0.3
flatbuffers==24.3.25
fonttools==4.53.1
frozenlist==1.4.1
fsspec==2024.6.1
ftfy==6.2.0
gast==0.6.0
gdown==5.2.0
gitdb==4.0.11
GitPython==3.1.43
google-auth==2.32.0
google-auth-oauthlib==1.2.1
google-pasta==0.2.0
graphviz==0.20.3
grpcio==1.65.1
gunicorn==22.0.0
h5py==3.11.0
huggingface-hub==0.24.0
humanfriendly==10.0
imageio==2.34.2
importlib_metadata==8.0.0
iniconfig==2.0.0
insightface==0.7.3
ip-adapter @ git+https://github.com/tencent-ailab/IP-Adapter.git@62e4af9d0c1ac7d5f8dd386a0ccf2211346af1a2
itsdangerous==2.2.0
joblib==1.4.2
keras==2.15.0
kiwisolver==1.4.5
lazy_loader==0.4
libclang==18.1.1
lion-pytorch==0.2.2
lpips==0.1.4
Markdown==3.6
markdown-it-py==3.0.0
matplotlib==3.9.1
mdurl==0.1.2
mkl-service==2.4.0
ml-dtypes==0.3.2
mtcnn==0.1.1
multidict==6.0.5
multiprocess==0.70.14
namex==0.0.8
nvidia-cublas-cu12==12.1.3.1
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==8.9.2.26
nvidia-cufft-cu12==11.0.2.54
nvidia-curand-cu12==10.3.2.106
nvidia-cusolver-cu12==11.4.5.107
nvidia-cusparse-cu12==12.1.0.106
nvidia-nccl-cu12==2.20.5
nvidia-nvjitlink-cu12==12.5.82
nvidia-nvtx-cu12==12.1.105
oauthlib==3.2.2
onnx==1.16.1
onnxruntime-gpu==1.18.1
opencv-python==4.10.0.84
opencv-python-headless==4.10.0.84
opt-einsum==3.3.0
optree==0.12.1
osqp==0.6.7.post0
packaging==24.1
pandas==2.2.2
pillow
piq==0.8.0
platformdirs==4.2.2
pluggy==1.5.0
prettytable==3.10.2
protobuf==4.25.3
psutil==6.0.0
pyarrow==17.0.0
pyasn1==0.6.0
pyasn1_modules==0.4.0
pydantic==2.8.2
pydantic_core==2.20.1
Pygments==2.18.0
pyparsing==3.1.2
PySocks
pytest==8.2.2
python-dateutil==2.9.0.post0
pytz==2024.1
PyYAML
qdldl==0.1.7.post4
regex==2024.5.15
requests
requests-oauthlib==2.0.0
responses==0.18.0
retina-face==0.0.17
rich==13.7.1
rsa==4.9
safetensors==0.4.3
scikit-image==0.24.0
scikit-learn==1.5.1
scipy==1.14.0
scs==3.2.6
sentry-sdk==2.10.0
setproctitle==1.3.3
six==1.16.0
smmap==5.0.1
soupsieve==2.5
sympy
tensorboard==2.15.2
tensorboard-data-server==0.7.2
tensorflow==2.15.1
tensorflow-estimator==2.15.0
tensorflow-io-gcs-filesystem==0.37.1
termcolor==2.4.0
threadpoolctl==3.5.0
tifffile==2024.7.21
tokenizers==0.13.3
tomli==2.0.1
torch==2.3.1
torchaudio==2.3.1
torchopt==0.7.3
torchvision==0.18.1
tqdm==4.66.4
transformers==4.26.0
triton==2.3.1
typing_extensions
tzdata==2024.1
urllib3
wandb==0.17.5
wcwidth==0.2.13
Werkzeug==3.0.3
wrapt==1.14.1
xformers==0.0.27
xxhash==3.4.1
yarl==1.9.4
zipp==3.19.2
Thank you for sharing your experimental code. I am currently trying to replicate the experiment locally. However, I noticed that the requirements.txt file does not specify the versions for the dependencies. This caused me to encounter some compatibility issues when reproducing the experimental environment.
Could you please update the requirements.txt file to include specific version numbers for all dependencies or provide the output of the pip list command from your environment? This will help me ensure that the installed dependencies are compatible with the project code.
Thank you for considering this request. Your help and attention to this matter are greatly appreciated.