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

proper compiled exe script #58

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This is a fork

### Strictly to fix requirements.txt and Compile 2 exe

___________

<!DOCTYPE html>
<html>
<body>
Expand Down
47 changes: 36 additions & 11 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
#AI
torch-directml==0.1.13.1.dev230413

#GUI
customtkinter
packaging

#UTILS
moviepy
opencv-python-headless
nuitka
altgraph==0.17.4
certifi==2023.7.22
charset-normalizer==3.3.2
colorama==0.4.6
customtkinter==5.2.1
darkdetect==0.8.0
decorator==4.4.2
filelock==3.13.1
idna==3.4
imageio==2.31.6
imageio-ffmpeg==0.4.9
importlib-metadata==6.8.0
Jinja2==3.1.2
MarkupSafe==2.1.3
moviepy==1.0.3
mpmath==1.3.0
networkx==3.1
numpy==1.24.4
opencv-python==4.6.0.66
opencv-python-headless==4.8.1.78
packaging==23.2
pefile==2023.2.7
Pillow==10.0.1
proglog==0.1.10
pyinstaller==6.1.0
pyinstaller-hooks-contrib==2023.10
pywin32-ctypes==0.2.2
requests==2.31.0
sympy==1.12
torch==2.0.0
torch-directml==0.2.0.dev230426
torchvision==0.15.1
tqdm==4.66.1
typing_extensions==4.8.0
urllib3==2.0.7
zipp==3.17.0
1 change: 1 addition & 0 deletions setup.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyinstaller --noconfirm --name "QualityScaler" --onefile --console --clean --hidden-import torch --hidden-import torchvision --add-data "Assets;Assets" --add-data "AI;AI" --add-binary "venv\Lib\site-packages\torch_directml\DirectML.dll;torch_directml" --hidden-import cv2 --paths "venv\Lib\site-packages" "QualityScaler.py"
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# assuming your venv is located in /venv/
pyinstaller --noconfirm --name "QualityScaler" --onefile --console --clean --hidden-import torch --hidden-import torchvision --add-data "Assets;Assets" --add-data "AI;AI" --add-binary "venv\Lib\site-packages\torch_directml\DirectML.dll;torch_directml" --hidden-import cv2 --paths "venv\Lib\site-packages" "QualityScaler.py"