Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
086ac752
"git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "a99d4fbfe38310887c104704d117bb9d8b6557a5"
Unverified
Commit
086ac752
authored
Jul 03, 2024
by
Chenlei Hu
Committed by
GitHub
Jul 03, 2024
Browse files
3.8 Compatible type annotation (#3938)
parent
d7484ef3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
folder_paths.py
folder_paths.py
+5
-4
No files found.
folder_paths.py
View file @
086ac752
import
os
import
os
import
time
import
time
import
logging
import
logging
from
typing
import
Set
,
List
,
Dict
,
Tuple
supported_pt_extensions
:
s
et
[
str
]
=
set
([
'.ckpt'
,
'.pt'
,
'.bin'
,
'.pth'
,
'.safetensors'
,
'.pkl'
])
supported_pt_extensions
:
S
et
[
str
]
=
set
([
'.ckpt'
,
'.pt'
,
'.bin'
,
'.pth'
,
'.safetensors'
,
'.pkl'
])
SupportedFileExtensionsType
=
s
et
[
str
]
SupportedFileExtensionsType
=
S
et
[
str
]
ScanPathType
=
l
ist
[
str
]
ScanPathType
=
L
ist
[
str
]
folder_names_and_paths
:
d
ict
[
str
,
t
uple
[
ScanPathType
,
SupportedFileExtensionsType
]]
=
{}
folder_names_and_paths
:
D
ict
[
str
,
T
uple
[
ScanPathType
,
SupportedFileExtensionsType
]]
=
{}
base_path
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
base_path
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
models_dir
=
os
.
path
.
join
(
base_path
,
"models"
)
models_dir
=
os
.
path
.
join
(
base_path
,
"models"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment