Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
update modules versions
Browse files Browse the repository at this point in the history
  • Loading branch information
iperov committed May 4, 2023
1 parent d66ff58 commit b7103b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
RUN git clone https://github.com/iperov/DeepFaceLive.git

RUN python -m pip install --upgrade pip
RUN python -m pip install onnxruntime-gpu==1.12.1 numpy==1.21.6 h5py numexpr protobuf==3.20.1 opencv-python==4.7.0.68 opencv-contrib-python==4.7.0.68 pyqt6==6.4.0 onnx==1.13.0 torch==1.10.0 torchvision==0.11.1
RUN python -m pip install onnxruntime-gpu==1.14.1 numpy==1.21.6 h5py numexpr protobuf==3.20.1 opencv-python==4.7.0.72 opencv-contrib-python==4.7.0.72 pyqt6==6.5.0 onnx==1.13.0 torch==1.13.1 torchvision==0.14.1

RUN apt install -y libnvidia-compute-$NV_VER

Expand Down
19 changes: 10 additions & 9 deletions build/windows/WindowsBuilder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
import os
import shutil
import ssl
import subprocess
import time
import urllib.request
Expand Down Expand Up @@ -81,7 +82,7 @@ def download_file(self, url, savepath : Path, progress_bar=True, use_cached=True
f = None
while True:
try:
url_request = urllib.request.urlopen(url)
url_request = urllib.request.urlopen(url, context=ssl._create_unverified_context())

This comment has been minimized.

Copy link
@nihs269

nihs269 May 24, 2023

unbelievable

url_size = int( url_request.getheader('content-length') )

if use_cached:
Expand Down Expand Up @@ -462,7 +463,7 @@ def create_internal_run_python_script(self, script_name : str, internal_relative
""")


def build_deepfacelive_windows(release_dir, cache_dir, python_ver='3.7.9', backend='cuda'):
def build_deepfacelive_windows(release_dir, cache_dir, python_ver='3.8.10', backend='cuda'):

builder = WindowsFolderBuilder(release_path=Path(release_dir),
cache_path=Path(cache_dir),
Expand All @@ -475,19 +476,19 @@ def build_deepfacelive_windows(release_dir, cache_dir, python_ver='3.7.9', backe
builder.install_pip_package('h5py')
builder.install_pip_package('numexpr')
builder.install_pip_package('protobuf==3.20.1')
builder.install_pip_package('opencv-python==4.7.0.68')
builder.install_pip_package('opencv-contrib-python==4.7.0.68')
builder.install_pip_package('pyqt6==6.4.0')
builder.install_pip_package('opencv-python==4.7.0.72')
builder.install_pip_package('opencv-contrib-python==4.7.0.72')

This comment has been minimized.

Copy link
@nihs269

nihs269 May 24, 2023

omg

builder.install_pip_package('pyqt6==6.5.0')
builder.install_pip_package('onnx==1.13.0')

if backend == 'cuda':
#builder.install_pip_package('torch==1.10.0+cu113 torchvision==0.11.1+cu113 -f https://download.pytorch.org/whl/torch_stable.html')
#builder.install_pip_package('torch==1.11.0+cu115 torchvision==0.12.0+cu115 -f https://download.pytorch.org/whl/torch_stable.html')
builder.install_pip_package('torch==1.12.1+cu116 torchvision==0.13.1+cu116 -f https://download.pytorch.org/whl/torch_stable.html')
builder.install_pip_package('torch==1.13.1+cu117 torchvision==0.14.1+cu117 -f https://download.pytorch.org/whl/torch_stable.html')

This comment has been minimized.

Copy link
@nihs269

nihs269 May 24, 2023

ok


builder.install_pip_package('onnxruntime-gpu==1.13.1')
builder.install_pip_package('onnxruntime-gpu==1.14.1')

This comment has been minimized.

Copy link
@nihs269

nihs269 May 24, 2023

alright

elif backend == 'directml':
builder.install_pip_package('onnxruntime-directml==1.13.1')
builder.install_pip_package('onnxruntime-directml==1.14.1')

This comment has been minimized.

Copy link
@nihs269

nihs269 May 24, 2023

good


builder.install_ffmpeg_binaries()

Expand Down Expand Up @@ -562,7 +563,7 @@ def __call__(self, parser, namespace, values, option_string=None):
p.add_argument('--build-type', required=True, choices=['dfl-windows'])
p.add_argument('--release-dir', action=fixPathAction, default=None)
p.add_argument('--cache-dir', action=fixPathAction, default=None)
p.add_argument('--python-ver', default="3.7.9")
p.add_argument('--python-ver', default="3.8.10")

This comment has been minimized.

Copy link
@nihs269

nihs269 May 24, 2023

the best

p.add_argument('--backend', choices=['cuda', 'directml'], default='cuda')

args = p.parse_args()
Expand Down

0 comments on commit b7103b2

Please sign in to comment.