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
c0b36010
Commit
c0b36010
authored
Aug 05, 2025
by
PengGao
Committed by
GitHub
Aug 05, 2025
Browse files
style: remove unused import (#184)
parent
f6d4fc85
Changes
48
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
5 additions
and
12 deletions
+5
-12
lightx2v/models/video_encoders/hf/wan/vae.py
lightx2v/models/video_encoders/hf/wan/vae.py
+0
-1
lightx2v/models/video_encoders/hf/wan/vae_2_2.py
lightx2v/models/video_encoders/hf/wan/vae_2_2.py
+0
-1
lightx2v/utils/prompt_enhancer.py
lightx2v/utils/prompt_enhancer.py
+1
-1
lightx2v/utils/service_utils.py
lightx2v/utils/service_utils.py
+1
-1
pyproject.toml
pyproject.toml
+1
-1
scripts/server/post_multi_servers.py
scripts/server/post_multi_servers.py
+0
-3
tools/extract/lora_extractor.py
tools/extract/lora_extractor.py
+1
-2
tools/extract/lora_merger.py
tools/extract/lora_merger.py
+1
-2
No files found.
lightx2v/models/video_encoders/hf/wan/vae.py
View file @
c0b36010
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
import
logging
import
logging
import
torch
import
torch
import
torch.cuda.amp
as
amp
import
torch.distributed
as
dist
import
torch.distributed
as
dist
import
torch.nn
as
nn
import
torch.nn
as
nn
import
torch.nn.functional
as
F
import
torch.nn.functional
as
F
...
...
lightx2v/models/video_encoders/hf/wan/vae_2_2.py
View file @
c0b36010
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
import
logging
import
logging
import
torch
import
torch
import
torch.cuda.amp
as
amp
import
torch.nn
as
nn
import
torch.nn
as
nn
import
torch.nn.functional
as
F
import
torch.nn.functional
as
F
from
einops
import
rearrange
from
einops
import
rearrange
...
...
lightx2v/utils/prompt_enhancer.py
View file @
c0b36010
...
@@ -4,7 +4,7 @@ import torch
...
@@ -4,7 +4,7 @@ import torch
from
loguru
import
logger
from
loguru
import
logger
from
transformers
import
AutoModelForCausalLM
,
AutoTokenizer
from
transformers
import
AutoModelForCausalLM
,
AutoTokenizer
from
lightx2v.utils.profiler
import
ProfilingContext
,
ProfilingContext4Debug
from
lightx2v.utils.profiler
import
ProfilingContext
sys_prompt
=
"""
sys_prompt
=
"""
Transform the short prompt into a detailed video-generation caption using this structure:
Transform the short prompt into a detailed video-generation caption using this structure:
...
...
lightx2v/utils/service_utils.py
View file @
c0b36010
...
@@ -4,7 +4,7 @@ import signal
...
@@ -4,7 +4,7 @@ import signal
import
sys
import
sys
import
threading
import
threading
from
datetime
import
datetime
from
datetime
import
datetime
from
typing
import
List
,
Optional
from
typing
import
Optional
import
psutil
import
psutil
import
torch
import
torch
...
...
pyproject.toml
View file @
c0b36010
...
@@ -19,7 +19,7 @@ indent-width = 4
...
@@ -19,7 +19,7 @@ indent-width = 4
[tool.ruff.lint]
[tool.ruff.lint]
extend-select
=
["I"]
extend-select
=
[
"I"
,
"F401"
]
ignore
=
["F"]
ignore
=
["F"]
[tool.ruff.lint.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
...
...
scripts/server/post_multi_servers.py
View file @
c0b36010
import
random
import
string
import
threading
import
threading
import
time
import
time
from
datetime
import
datetime
import
requests
import
requests
from
loguru
import
logger
from
loguru
import
logger
...
...
tools/extract/lora_extractor.py
View file @
c0b36010
...
@@ -7,8 +7,7 @@ Extract LoRA weights from the difference between two models
...
@@ -7,8 +7,7 @@ Extract LoRA weights from the difference between two models
import
argparse
import
argparse
import
os
import
os
from
pathlib
import
Path
from
typing
import
Dict
,
Optional
from
typing
import
Any
,
Dict
,
Optional
import
torch
import
torch
from
safetensors
import
safe_open
from
safetensors
import
safe_open
...
...
tools/extract/lora_merger.py
View file @
c0b36010
...
@@ -7,8 +7,7 @@ Merge a source model with LoRA weights to create a new model
...
@@ -7,8 +7,7 @@ Merge a source model with LoRA weights to create a new model
import
argparse
import
argparse
import
os
import
os
from
pathlib
import
Path
from
typing
import
Dict
,
Optional
from
typing
import
Any
,
Dict
,
Optional
import
torch
import
torch
from
safetensors
import
safe_open
from
safetensors
import
safe_open
...
...
Prev
1
2
3
Next
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