38 Commits

Author SHA1 Message Date
dependabot[bot] 746a4dde30 Bump numpy from 1.21.4 to 1.24.2
Bumps [numpy](https://github.com/numpy/numpy) from 1.21.4 to 1.24.2.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](https://github.com/numpy/numpy/compare/v1.21.4...v1.24.2)

---
updated-dependencies:
- dependency-name: numpy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-06 22:01:35 +00:00
Alex Chychkan 4a83e56dd9 Upgrade patch version of tensorflow (#116) 2022-12-09 12:45:09 -08:00
Oleksandr Chychkan e4d0993da4 Delete stale issues workflow 2022-04-02 09:03:34 -07:00
Oleksandr Chychkan 90dc16b81a Add requirements file for Python 3.10 (#49)
* Add requirements file for Python 10

* Add Python 3.10 to GitHub Actions

* Upgrade opencv-contrib-python-headless to 4.5.4.58 for Python 10

* Upgrade scipy to 1.7.2 for Python 3.10

* Upgrade multiple deps

* Use custom DFL branch for python 3.10

* Pre-install numpy for Python 3.10

* Switch to opencv-python
2022-02-23 07:13:56 -08:00
Oleksandr Chychkan a1c6ebd2c6 Add missing XSeg scripts (#76) 2022-02-22 20:51:26 -08:00
Alexander Canton a3ab8d8b63 Add support for Apple M1 laptops (#71)
* Add support for Apple M1 laptops

* Pre-install numpy

* Use forked DeepFaceLab with minor fixes

* Use --no-single-branch when cloning DFL

* Minor improvements

* Minor fixes to 0_setup.sh

* Update versions

* Update README

Co-authored-by: Oleksandr Chychkan <chychkan@gmail.com>
2022-02-22 19:41:21 -08:00
Oleksandr Chychkan cff388ea89 Bump numpy to 1.21.4 for Python 3.7+ (#59) 2021-11-12 14:43:34 -08:00
Oleksandr Chychkan cb5dbb53ec Bump tensorflow to 2.7.0 for Python 3.7+ (#58) 2021-11-12 14:18:19 -08:00
Oleksandr Chychkan 00c38c0bbc Bump scipy to 1.7.2 for Python 3.7+ (#55) 2021-11-11 15:49:31 -08:00
dependabot[bot] 9bd56f3676 Bump tensorflow from 2.6.0 to 2.7.0 (#53)
Bumps [tensorflow](https://github.com/tensorflow/tensorflow) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/tensorflow/tensorflow/releases)
- [Changelog](https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md)
- [Commits](https://github.com/tensorflow/tensorflow/compare/v2.6.0...v2.7.0)

---
updated-dependencies:
- dependency-name: tensorflow
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-11 15:17:33 -08:00
Oleksandr Chychkan 889af19a8d Add numexpr dependency (#54) 2021-11-11 14:49:13 -08:00
Oleksandr Chychkan be70ea702a Create stale-issues.yml 2021-11-11 13:48:49 -08:00
Oleksandr Chychkan e8c28574ba Print current Python version along with used reqs file (#48) 2021-11-01 21:09:49 -07:00
Oleksandr Chychkan f5c2785d90 Upgrade opencv-contrib-python-headless to 4.5.1.48 for Python 3.9 (#45) 2021-10-31 20:42:26 -07:00
Oleksandr Chychkan 5e8e545290 Bump opencv-contrib-python-headless to 4.1.2.30 for Python 3.6 (#42) 2021-10-21 21:16:37 -07:00
dependabot[bot] ad71977d83 Bump pillow from 8.3.2 to 8.4.0 (#40)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 8.3.2 to 8.4.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/8.3.2...8.4.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-21 20:52:40 -07:00
dependabot[bot] ab84544bcc Bump tqdm from 4.47.0 to 4.62.3 (#32)
Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.47.0 to 4.62.3.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](https://github.com/tqdm/tqdm/compare/v4.47.0...v4.62.3)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-21 17:51:46 -07:00
dependabot[bot] 8304db3da2 Bump scikit-image from 0.17.2 to 0.18.3 (#28)
* Bump scikit-image from 0.17.2 to 0.18.3

Bumps [scikit-image](https://github.com/scikit-image/scikit-image) from 0.17.2 to 0.18.3.
- [Release notes](https://github.com/scikit-image/scikit-image/releases)
- [Changelog](https://github.com/scikit-image/scikit-image/blob/main/RELEASE.txt)
- [Commits](https://github.com/scikit-image/scikit-image/compare/v0.17.2...v0.18.3)

---
updated-dependencies:
- dependency-name: scikit-image
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Rollback to 0.17.2 for Python 3.6

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Oleksandr Chychkan <chychkan@gmail.com>
2021-09-24 12:21:18 -07:00
dependabot[bot] b410297f6c Bump pillow from 8.3.1 to 8.3.2 (#31)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 8.3.1 to 8.3.2.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/8.3.1...8.3.2)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-24 10:57:35 -07:00
Oleksandr Chychkan 3c5bd39f54 Use opencv-headlesss (#33) 2021-09-24 10:07:56 -07:00
dependabot[bot] c3d454d42c Bump scipy from 1.4.1 to 1.7.1 (#22)
* Bump scipy from 1.4.1 to 1.7.1

Bumps [scipy](https://github.com/scipy/scipy) from 1.4.1 to 1.7.1.
- [Release notes](https://github.com/scipy/scipy/releases)
- [Commits](https://github.com/scipy/scipy/compare/v1.4.1...v1.7.1)

---
updated-dependencies:
- dependency-name: scipy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Use scipy==1.5.4 for Python 3.6

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Oleksandr Chychkan <chychkan@gmail.com>
2021-08-24 20:19:48 -07:00
Oleksandr Chychkan 1279075260 Set flag in all scripts to abort execution if command fails (#29) 2021-08-24 20:19:23 -07:00
dependabot[bot] e2f58c8720 Bump pillow from 8.2.0 to 8.3.1 (#19)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 8.2.0 to 8.3.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/8.2.0...8.3.1)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-24 15:00:56 -07:00
dependabot[bot] 0a84ef8109 Bump colorama from 0.4.3 to 0.4.4 (#21)
Bumps [colorama](https://github.com/tartley/colorama) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/tartley/colorama/releases)
- [Changelog](https://github.com/tartley/colorama/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/tartley/colorama/compare/0.4.3...0.4.4)

---
updated-dependencies:
- dependency-name: colorama
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-20 12:18:16 -07:00
Oleksandr Chychkan 647239a43a Create simple CI workflow for MacOS Catalina (#24) 2021-08-20 12:12:40 -07:00
Oleksandr Chychkan da9fce58bb Create dependabot.yml 2021-08-20 11:54:34 -07:00
Oleksandr Chychkan cbd95e41cc Upgrade tensorflow to 2.6.0 (latest) (#18)
* Upgrade tensorflow to Python 3.6

* Upgrade tensorflow for Python 3.7 and 3.8

* Upgrade tensorflow for Python 3.9
2021-08-18 21:29:14 -07:00
Oleksandr Chychkan cefee05b83 Upgrade Pillow to 8.2.0 (#17) 2021-08-18 20:06:28 -07:00
Oleksandr Chychkan fa8f1ba31c Add support for Python 3.9 (#16) 2021-08-08 18:33:09 -07:00
Oleksandr Chychkan 3a33c70ad4 Merge pull request #15 from chychkan/run-xseg
Add a script and reqs to run XSeg editor
2021-08-01 17:53:45 -07:00
Oleksandr Chychkan 7dcb9568c9 Add a script and reqs to run XSeg editor 2021-08-01 17:52:35 -07:00
Oleksandr Chychkan 6bf4d54800 Merge pull request #14 from chychkan/python-3.7
Make default requirements.txt work for Python 3.7 and 3.8
2021-08-01 17:37:21 -07:00
Oleksandr Chychkan 4686ceeb04 Make default requirements.txt work for Python 3.7 and 3.8 2021-08-01 17:31:33 -07:00
Oleksandr Chychkan b6c2ed848d Merge pull request #13 from chychkan/python-3.8
Add support for Python 3.8
2021-07-31 23:21:04 -07:00
Oleksandr Chychkan ff5c3f1f0b Add support for Python 3.8 2021-07-31 23:16:00 -07:00
Oleksandr Chychkan a3f6898f49 Fix 1_clean_workspace.sh script not deleting files in data_src/ 2020-07-06 23:24:48 -07:00
Oleksandr Chychkan c660a1fc92 Make shallow copy of DFL repo to speedup setup process 2020-07-06 23:06:13 -07:00
Oleksandr Chychkan 14cbc4aeff Fix paths in 0_setup.sh script 2020-07-06 23:04:55 -07:00
23 changed files with 252 additions and 15 deletions
+12
View File
@@ -0,0 +1,12 @@
# See https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "pip"
directory: "/" # Location of package manifests
schedule:
interval: "daily"
open-pull-requests-limit: 5
pull-request-branch-name:
separator: "-"
reviewers:
- "chychkan"
@@ -0,0 +1,35 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Verify setup
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-10.15
strategy:
fail-fast: true
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python --version
python -m pip install --upgrade pip
python -m pip install virtualenv
virtualenv --version
- name: Run 0_setup.sh
run: |
./scripts/0_setup.sh
+7
View File
@@ -4,6 +4,10 @@ This project provides scripts inspired by [DeepFaceLab_Linux](https://github.com
You'll need `git`, `ffmpeg`, `python3` and python module `virtualenv` available to be able to execute these scripts. The scripts will create a virtual env sandbox and will install all necessary dependencies there, so your main installation of `python3` will be left intact.
## NOTE: Apple M1 chip
Currently there's limited support for Apple M1 laptops. You can do model training, but the XSeg editor currently does not work (the DeepFaceLab codebase is not compatible with PyQt6).
## Setup
**Tools**
@@ -14,6 +18,9 @@ Make sure you have installed:
- [Python 3](https://www.python.org/) (check with `python3 --version`)
- [Virtualenv](https://github.com/pypa/virtualenv) (check with `virtualenv --version`)
For **Apple M1** laptops you also need [hdf5](https://formulae.brew.sh/formula/hdf5) lib installed.
Check if you have it with `brew ls --versions hdf5`. Install it with `brew install hdf5`.
**Clone and setup**
1. Clone this repository (`git clone https://github.com/chychkan/DeepFaceLab_MacOS.git`)
+11 -9
View File
@@ -1,10 +1,12 @@
numpy==1.17.0
opencv-python==4.1.0.25
scipy==1.4.1
tensorflow==1.15.2
colorama==0.4.3
tqdm==4.47.0
numpy==1.24.2
opencv-contrib-python-headless==4.1.2.30
scipy==1.7.2
tensorflow==2.7.4
colorama==0.4.4
tqdm==4.62.3
ffmpeg-python==0.2.0
Pillow==7.2.0
scikit-image==0.17.2
h5py==2.10.0
Pillow==8.4.0
scikit-image==0.18.3
h5py==3.1.0
PyQt5==5.15.4
numexpr==2.7.3
+12
View File
@@ -0,0 +1,12 @@
numpy==1.24.2
numexpr==2.8.1
opencv-python==4.5.5.62
scipy==1.8.0
tensorflow==2.8.4
colorama==0.4.4
tqdm==4.62.3
ffmpeg-python==0.2.0
Pillow==8.4.0
scikit-image==0.19.2
h5py==3.6.0
PyQt5==5.15.4
+12
View File
@@ -0,0 +1,12 @@
numpy==1.24.2
opencv-contrib-python-headless==4.1.2.30
scipy==1.5.4
tensorflow==2.6.2
colorama==0.4.4
tqdm==4.62.3
ffmpeg-python==0.2.0
Pillow==8.4.0
scikit-image==0.17.2
h5py==3.1.0
PyQt5==5.15.4
numexpr==2.7.3
+12
View File
@@ -0,0 +1,12 @@
numpy==1.24.2
opencv-contrib-python-headless==4.5.1.48
scipy==1.7.2
tensorflow==2.7.4
colorama==0.4.4
tqdm==4.62.3
ffmpeg-python==0.2.0
Pillow==8.4.0
scikit-image==0.18.3
h5py==3.1.0
PyQt5==5.15.4
numexpr==2.7.3
+13
View File
@@ -0,0 +1,13 @@
numpy==1.24.2
opencv-python==4.5.5.62
numexpr==2.8.1
h5py==3.1.0
tqdm==4.62.3
colorama==0.4.4
cython==0.29.26
ffmpeg-python==0.2.0
Pillow==8.4.0
scikit-image==0.19.1
scipy==1.8.0
tensorflow-macos==2.7.0
PyQt6==6.2.3
+56 -3
View File
@@ -1,13 +1,24 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
set -e
mkdir -p .dfl
mkdir -p workspace
is_arm64() {
[ "$(uname -m)" == "arm64" ]
}
is_arm64 && echo "Running on Apple M1 chip"
if [ ! -d .dfl/DeepFaceLab ]; then
echo "Cloning DeepFaceLab"
cd .dfl
git clone "https://github.com/iperov/DeepFaceLab.git"
git clone --no-single-branch --depth 1 "https://github.com/chychkan/DeepFaceLab.git" .dfl/DeepFaceLab
if is_arm64; then
(cd .dfl/DeepFaceLab; git checkout support-arm64)
fi
fi
if [ ! -d .dfl/env ]; then
@@ -16,6 +27,48 @@ fi
source .dfl/env/bin/activate
pip install -r requirements.txt
python -m pip install --upgrade pip
version=$(python -V | cut -f 2 -d ' ' | cut -f 1,2 -d .)
reqs_file='requirements.txt'
version_suffix=''
if [[ ! -z "$version" && -f "requirements_$version.txt" ]]; then
version_suffix="_$version"
fi
architecture_suffix=''
if is_arm64 && [ -f "requirements${version_suffix}_arm64.txt" ]; then
architecture_suffix="_arm64"
fi
reqs_file="requirements${version_suffix}${architecture_suffix}.txt"
echo "Using $reqs_file for $(python -V)"
if is_arm64; then
if [[ -z "$(brew ls --versions hdf5)" ]]; then
echo "ERROR: HDF5 needs to be installed to run DeepFaceLab on M1 chip."
echo "You can install it with 'brew install hdf5'. For more details, see https://formulae.brew.sh/formula/hdf5"
echo "Once it is installed, run ./scripts/0_setup.sh again"
exit 1
fi
cython_pkg="$(cat $reqs_file | grep -E 'cython==.+')"
pip --no-cache-dir install "$cython_pkg"
numpy_pkg="$(cat $reqs_file | grep -E 'numpy==.+')"
pip install "$numpy_pkg"
h5py_pkg="$(cat $reqs_file | grep -E 'h5py==.+')"
HDF5_DIR="$(brew --prefix hdf5)" pip --no-cache-dir install --no-build-isolation "$h5py_pkg"
elif [ "$version" == "3.10" ]; then
(cd .dfl/DeepFaceLab; git checkout support-opencv45)
numpy_pkg="$(cat $reqs_file | grep -E 'numpy==.+')"
pip install "$numpy_pkg"
fi
pip --no-cache-dir install -r $reqs_file
echo "Done."
+3 -3
View File
@@ -2,6 +2,6 @@
cd "$(dirname $0)/.."
source scripts/env.sh
rm -fr "$WORKSPACE/data_src/*"
rm -fr "$WORKSPACE/data_dst/*"
rm -fr "$WORKSPACE/model/*"
rm -fr $WORKSPACE/data_src/*
rm -fr $WORKSPACE/data_dst/*
rm -fr $WORKSPACE/model/*
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" xseg editor \
--input-dir "$WORKSPACE/data_dst/aligned"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" xseg fetch \
--input-dir "$WORKSPACE/data_dst/aligned"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" xseg remove_labels \
--input-dir "$WORKSPACE/data_dst/aligned"
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" xseg apply \
--input-dir "$WORKSPACE/data_dst/aligned" \
--model-dir "$WORKSPACE/model"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" xseg remove \
--input-dir "$WORKSPACE/data_dst/aligned"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" xseg editor \
--input-dir "$WORKSPACE/data_src/aligned"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" xseg fetch \
--input-dir "$WORKSPACE/data_src/aligned"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" xseg remove_labels \
--input-dir "$WORKSPACE/data_src/aligned"
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" xseg apply \
--input-dir "$WORKSPACE/data_src/aligned" \
--model-dir "$WORKSPACE/model"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" xseg remove \
--input-dir "$WORKSPACE/data_src/aligned"
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" train \
--training-data-src-dir "$WORKSPACE/data_src/aligned" \
--training-data-dst-dir "$WORKSPACE/data_dst/aligned" \
--model-dir "$WORKSPACE/model" \
--model XSeg
+2
View File
@@ -2,3 +2,5 @@ DFL_MAIN=.dfl/DeepFaceLab/main.py
WORKSPACE=workspace
source .dfl/env/bin/activate
set -e
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
cd "$(dirname $0)/.."
source scripts/env.sh
python "$DFL_MAIN" xseg editor \
--input-dir "$WORKSPACE/data_src/aligned"