Skip to content

Commit 0b2a4f3

Browse files
committed
Add hidden import for timm
1 parent bd4cc60 commit 0b2a4f3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

taggui-linux.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ datas = [('clip-vit-base-patch32', 'clip-vit-base-patch32'),
66
datas += [('/usr/include/python3.11', 'include/python3.11')]
77
datas += collect_data_files('triton')
88
datas += collect_data_files('xformers')
9+
hiddenimports = ['timm.models.layers']
910

1011
block_cipher = None
1112

@@ -15,7 +16,7 @@ a = Analysis(
1516
pathex=['taggui'],
1617
binaries=[],
1718
datas=datas,
18-
hiddenimports=[],
19+
hiddenimports=hiddenimports,
1920
hookspath=[],
2021
hooksconfig={},
2122
runtime_hooks=[],

taggui-windows.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ from PyInstaller.utils.hooks import collect_data_files
44
datas = [('clip-vit-base-patch32', 'clip-vit-base-patch32'),
55
('images/icon.ico', 'images')]
66
datas += collect_data_files('xformers')
7+
hiddenimports = ['timm.models.layers']
78

89
block_cipher = None
910

@@ -13,7 +14,7 @@ a = Analysis(
1314
pathex=['taggui'],
1415
binaries=[],
1516
datas=datas,
16-
hiddenimports=[],
17+
hiddenimports=hiddenimports,
1718
hookspath=[],
1819
hooksconfig={},
1920
runtime_hooks=[],

0 commit comments

Comments
 (0)