Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed dlib version. Cmake added to setup. #3

Merged
merged 1 commit into from
May 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Use *Install from URL* option with this repo url.
- mmdet==2.27.0
- lightning-utilities==0.4.0
- pytorch-lightning==1.7.6
- dlib==19.24.0
- setuptools
- dlib

All requirements will be installed on first use, except for:
- [cmake](https://cmake.org/download/) - used only for dlib masks
Expand Down
13 changes: 12 additions & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,20 @@ def modeltitle(path, shorthash):
run(f'"{python}" -m pip install lightning-utilities==0.4.0', desc=None, errdesc=f"Couldn't install lightning-utilities")
run(f'"{python}" -m pip install pytorch-lightning==1.7.6', desc=None, errdesc=f"Couldn't install pytorch-lightning")

if not is_installed("cmake"):
run(f'"{python}" -m pip install cmake', desc="Installing cmake", errdesc="Couldn't install cmake")

if not is_installed("dlib"):
run(f'"{python}" -m pip install setuptools', desc="Installing setuptools", errdesc="Couldn't install setuptools")
run(f'"{python}" -m pip install dlib', desc="Installing dlib", errdesc="Couldn't install dlib")
try:
run(f'"{python}" -m pip install dlib==19.24.0', desc="Installing dlib", errdesc="Couldn't install dlib")
except Exception as e:
print("----------------------------------------")
print("Failed building wheel for dlib")
print("ERROR: CMake must be installed to build dlib")
print("Install cmake from https://cmake.org/download/")
print("----------------------------------------")


if not is_installed("mmdet"):
run(f'"{python}" -m pip install openmim==0.3.5', desc="Installing openmim", errdesc="Couldn't install openmim")
Expand Down