Merge pull request #250 from s0md3v/next

Next
This commit is contained in:
Henry Ruhs 2023-06-01 15:54:31 +02:00 committed by GitHub
commit 61c8f06c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 2 deletions

BIN
.github/examples/face.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 KiB

BIN
.github/examples/snapshot.mp4 vendored Normal file

Binary file not shown.

BIN
.github/examples/target.mp4 vendored Normal file

Binary file not shown.

View File

@ -14,3 +14,20 @@ jobs:
python-version: 3.9 python-version: 3.9
- run: pip install flake8 - run: pip install flake8
- run: flake8 run.py core - run: flake8 run.py core
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up ffmpeg
uses: FedericoCarboni/setup-ffmpeg@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install -r requirements.txt
- run: pip install gdown
- run: gdown 14JzEMo8ScLinvBkl7QEvYvFEi7EBXNAt
- run: ./run.py -f=.github/examples/face.jpg -t=.github/examples/target.mp4 -o=.github/examples/output.mp4
- run: ffmpeg -i .github/examples/snapshot.mp4 -i .github/examples/output.mp4 -filter_complex "psnr" -f null -

View File

@ -6,8 +6,10 @@ psutil==5.9.5
tk==0.1.0 tk==0.1.0
pillow==9.5.0 pillow==9.5.0
torch==2.0.1 torch==2.0.1
onnxruntime-gpu==1.15.0 onnxruntime==1.15.0; sys_platform == 'darwin'
tensorflow==2.12.0 onnxruntime-gpu==1.15.0; sys_platform != 'darwin'
tensorflow==2.13.0rc1; sys_platform == 'darwin'
tensorflow==2.12.0; sys_platform != 'darwin'
opennsfw2==0.10.2 opennsfw2==0.10.2
protobuf==4.23.2 protobuf==4.23.2
tqdm==4.65.0 tqdm==4.65.0