Skip to content

Commit

Permalink
fix(exe): include realesrgan and coloredlogs in bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Mar 31, 2023
1 parent ee3774b commit 9b05b6b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion exe/win10.directml.dir.spec
Expand Up @@ -40,6 +40,7 @@ datas = [
]),
collect_data_files("onnxruntime", include_py_files=True, includes=[
"transformers/**",
"tools/**",
]),
collect_data_files("transformers", include_py_files=True, includes=[
"**",
Expand All @@ -55,7 +56,7 @@ a = Analysis(
*metadatas,
*datas,
],
hiddenimports=['onnxruntime', 'onnxruntime-directml', 'tqdm'],
hiddenimports=['coloredlogs', 'onnxruntime', 'onnxruntime-directml', 'tqdm'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
Expand Down
13 changes: 12 additions & 1 deletion exe/win10.directml.file.spec
Expand Up @@ -31,6 +31,17 @@ datas = [
"models/**",
"utils/**",
]),
collect_data_files("realesrgan", include_py_files=True, includes=[
"archs/**",
"data/**",
"losses/**",
"models/**",
"utils/**",
]),
collect_data_files("onnxruntime", include_py_files=True, includes=[
"transformers/**",
"tools/**",
]),
collect_data_files("transformers", include_py_files=True, includes=[
"**",
]),
Expand All @@ -45,7 +56,7 @@ a = Analysis(
*metadatas,
*datas,
],
hiddenimports=['onnxruntime', 'onnxruntime-directml', 'tqdm'],
hiddenimports=['coloredlogs', 'onnxruntime', 'onnxruntime-directml', 'tqdm'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
Expand Down

0 comments on commit 9b05b6b

Please sign in to comment.