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
xuwx1
LightX2V
Commits
6681e9a0
Commit
6681e9a0
authored
Jun 11, 2025
by
gushiqiao
Browse files
Fix
parent
61420957
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tools/convert/converter.py
tools/convert/converter.py
+3
-3
No files found.
tools/convert/converter.py
View file @
6681e9a0
...
...
@@ -526,7 +526,7 @@ def copy_non_weight_files(source_dir, target_dir):
logger
.
info
(
f
"Start copying non-weighted files and subdirectories..."
)
for
item
in
tqdm
(
os
.
listdir
(
source_dir
),
desc
=
"
复制非权重文件
"
):
for
item
in
tqdm
(
os
.
listdir
(
source_dir
),
desc
=
"
copy non-weighted file
"
):
source_item
=
os
.
path
.
join
(
source_dir
,
item
)
target_item
=
os
.
path
.
join
(
target_dir
,
item
)
...
...
@@ -536,9 +536,9 @@ def copy_non_weight_files(source_dir, target_dir):
copy_non_weight_files
(
source_item
,
target_item
)
elif
os
.
path
.
isfile
(
source_item
)
and
not
any
(
source_item
.
endswith
(
ext
)
for
ext
in
ignore_extensions
):
shutil
.
copy2
(
source_item
,
target_item
)
logger
.
debug
(
f
"
复制文件
:
{
source_item
}
->
{
target_item
}
"
)
logger
.
debug
(
f
"
copy file
:
{
source_item
}
->
{
target_item
}
"
)
except
Exception
as
e
:
logger
.
error
(
f
"
复制
{
source_item
}
时出错
:
{
str
(
e
)
}
"
)
logger
.
error
(
f
"
copy
{
source_item
}
:
{
str
(
e
)
}
"
)
logger
.
info
(
f
"Non-weight files and subdirectories copied"
)
...
...
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