1
0
Fork 0

fix(exe): add pytorch_lightning to Windows bundle (#366)

This commit is contained in:
Sean Sube 2023-04-30 17:19:29 -05:00
parent 852c57c08a
commit 25e0ece8e2
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
3 changed files with 17 additions and 4 deletions

View File

@ -16,7 +16,8 @@ xcopy ..\models .\dist\models /s /e /f /i /y
xcopy ..\outputs .\dist\outputs /s /e /f /i /y xcopy ..\outputs .\dist\outputs /s /e /f /i /y
REM copy loose files REM copy loose files
copy ".\onnx-web-*" .\dist\ \y copy .\onnx-web-full.bat .\dist\onnx-web-full.bat \y
copy .\onnx-web-half.bat .\dist\onnx-web-half.bat \y
copy .\README.txt .\dist\README.txt copy .\README.txt .\dist\README.txt
copy ..\api\logging.yaml .\dist\logging.yaml /y copy ..\api\logging.yaml .\dist\logging.yaml /y
copy ..\api\params.json .\dist\params.json /y copy ..\api\params.json .\dist\params.json /y
@ -31,4 +32,4 @@ set /p GIT_SHA=<commit.txt
set GIT_HEAD=%GIT_SHA:~0,8% set GIT_HEAD=%GIT_SHA:~0,8%
REM create archive REM create archive
"C:\Program Files\7-Zip\7z.exe" a ..\dist\onnx-web-v%BUNDLE_VERSION%-%BUNDLE_TYPE%-%GIT_HEAD%.zip ".\dist\*" "C:\Program Files\7-Zip\7z.exe" a .\dist\onnx-web-v%BUNDLE_VERSION%-%BUNDLE_TYPE%-%GIT_HEAD%.zip ".\dist\*"

View File

@ -56,7 +56,13 @@ a = Analysis(
*metadatas, *metadatas,
*datas, *datas,
], ],
hiddenimports=['coloredlogs', 'onnxruntime', 'onnxruntime-directml', 'tqdm'], hiddenimports=[
'coloredlogs',
'onnxruntime',
'onnxruntime-directml',
'pytorch_lightning',
'tqdm'
],
hookspath=[], hookspath=[],
hooksconfig={}, hooksconfig={},
runtime_hooks=[], runtime_hooks=[],

View File

@ -56,7 +56,13 @@ a = Analysis(
*metadatas, *metadatas,
*datas, *datas,
], ],
hiddenimports=['coloredlogs', 'onnxruntime', 'onnxruntime-directml', 'tqdm'], hiddenimports=[
'coloredlogs',
'onnxruntime',
'onnxruntime-directml',
'pytorch_lightning',
'tqdm'
],
hookspath=[], hookspath=[],
hooksconfig={}, hooksconfig={},
runtime_hooks=[], runtime_hooks=[],