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
ba02a9b8
Commit
ba02a9b8
authored
Jul 11, 2025
by
GoatWu
Browse files
clear code
parent
f010e630
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
49 deletions
+9
-49
.gitignore
.gitignore
+1
-0
app/.gradio/certificate.pem
app/.gradio/certificate.pem
+0
-31
configs/offload/phase/wan_t2v_phase.json
configs/offload/phase/wan_t2v_phase.json
+1
-1
lightx2v/models/input_encoders/hf/llava/model.py
lightx2v/models/input_encoders/hf/llava/model.py
+0
-9
scripts/wan/run_wan_i2v_audio.sh
scripts/wan/run_wan_i2v_audio.sh
+3
-3
scripts/wan/run_wan_i2v_causvid.sh
scripts/wan/run_wan_i2v_causvid.sh
+2
-2
scripts/wan/run_wan_skyreels_v2_df.sh
scripts/wan/run_wan_skyreels_v2_df.sh
+2
-3
No files found.
.gitignore
View file @
ba02a9b8
...
@@ -26,3 +26,4 @@ build/
...
@@ -26,3 +26,4 @@ build/
dist/
dist/
.cache/
.cache/
server_cache/
server_cache/
app/.gradio/
app/.gradio/certificate.pem
deleted
100644 → 0
View file @
f010e630
-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw
TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4
WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu
ZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY
MTCCA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wW6LLv3xLfHTjuCvjHIInNzktHCgKQ5
ORAzI4JMPJ+GslWYHb4phowim57iaztXOoJwTdwJx4nLCgdNbOhdjsnvzqvHu7Ur
TkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nxe5AW0wdeRlN8NwdC
jNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZAJzVc
oyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq
4RgqsahDYVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPA
mRGunUHBcnWEvgJBQl9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d
emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=
-----END CERTIFICATE-----
configs/offload/phase/wan_t2v_phase.json
View file @
ba02a9b8
...
@@ -18,6 +18,6 @@
...
@@ -18,6 +18,6 @@
"mm_type"
:
"W-int8-channel-sym-A-int8-channel-sym-dynamic-Q8F"
"mm_type"
:
"W-int8-channel-sym-A-int8-channel-sym-dynamic-Q8F"
},
},
"tiny_vae"
:
true
,
"tiny_vae"
:
true
,
"tiny_vae_path"
:
"/
mnt/afs_2/gushiqiao/
x2v_models/taew2_1.pth"
,
"tiny_vae_path"
:
"/x2v_models/taew2_1.pth"
,
"t5_offload_granularity"
:
"block"
"t5_offload_granularity"
:
"block"
}
}
lightx2v/models/input_encoders/hf/llava/model.py
View file @
ba02a9b8
...
@@ -151,12 +151,3 @@ class TextEncoderHFLlavaModel:
...
@@ -151,12 +151,3 @@ class TextEncoderHFLlavaModel:
if
config
.
cpu_offload
:
if
config
.
cpu_offload
:
self
.
to_cpu
()
self
.
to_cpu
()
return
last_hidden_state
,
attention_mask
return
last_hidden_state
,
attention_mask
if
__name__
==
"__main__"
:
model
=
TextEncoderHFLlavaModel
(
"/mtc/yongyang/models/x2v_models/hunyuan/lightx2v_format/i2v/text_encoder_i2v"
,
torch
.
device
(
"cuda"
))
text
=
"An Asian man with short hair in black tactical uniform and white clothes waves a firework stick."
img_path
=
"/mtc/yongyang/projects/lightx2v/assets/inputs/imgs/img_1.jpg"
img
=
Image
.
open
(
img_path
).
convert
(
"RGB"
)
outputs
=
model
.
infer
(
text
,
img
,
None
)
logger
.
info
(
outputs
)
scripts/wan/run_wan_i2v_audio.sh
View file @
ba02a9b8
#!/bin/bash
#!/bin/bash
# set path and first
# set path and first
lightx2v_path
=
"/mnt/Text2Video/wangshankun/lightx2v"
lightx2v_path
=
model_path
=
"/mnt/Text2Video/wangshankun/HF_Cache/Wan2.1-I2V-Audio-14B-720P/"
model_path
=
lora_path
=
"/mnt/Text2Video/wangshankun/HF_Cache/Wan21_T2V_14B_lightx2v_cfg_step_distill_lora_rank32.safetensors"
lora_path
=
# check section
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
cuda_devices
=
0
cuda_devices
=
0
...
...
scripts/wan/run_wan_i2v_causvid.sh
View file @
ba02a9b8
#!/bin/bash
#!/bin/bash
# set path and first
# set path and first
lightx2v_path
=
"/mnt/Text2Video/wangshankun/lightx2v/"
lightx2v_path
=
model_path
=
"/mnt/Text2Video/wangshankun/HF_Cache/Wan2.1-I2V-14B-CausVid/"
model_path
=
# check section
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
cuda_devices
=
0
cuda_devices
=
0
...
...
scripts/wan/run_wan_skyreels_v2_df.sh
View file @
ba02a9b8
#!/bin/bash
#!/bin/bash
# set path and first
# set path and first
lightx2v_path
=
"/mnt/Text2Video/wangshankun/tmp_code/lightx2v/"
lightx2v_path
=
model_path
=
"/mnt/Text2Video/wangshankun/HF_Cache/hub/models--Skywork--SkyReels-V2-DF-14B-540P/snapshots/7ff972ba7b6a33d2f6e6c976dd3cf2d36984eee4/"
model_path
=
# check section
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
...
...
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