"examples/vscode:/vscode.git/clone" did not exist on "1cab64b3bea526a83c02bf52a8634dbcb4704f0d"
Commit 91ef1bd1 authored by GoatWu's avatar GoatWu
Browse files

update docs

parent 4b8f0d55
...@@ -40,12 +40,18 @@ extensions = [ ...@@ -40,12 +40,18 @@ extensions = [
"sphinx_copybutton", "sphinx_copybutton",
"sphinx.ext.autodoc", "sphinx.ext.autodoc",
"sphinx.ext.autosummary", "sphinx.ext.autosummary",
"sphinx.ext.mathjax",
"myst_parser", "myst_parser",
"sphinxarg.ext", "sphinxarg.ext",
"sphinxcontrib.redoc", "sphinxcontrib.redoc",
"sphinxcontrib.openapi", "sphinxcontrib.openapi",
] ]
myst_enable_extensions = [
"dollarmath",
"amsmath",
]
html_static_path = ["_static"] html_static_path = ["_static"]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
......
...@@ -40,12 +40,18 @@ extensions = [ ...@@ -40,12 +40,18 @@ extensions = [
"sphinx_copybutton", "sphinx_copybutton",
"sphinx.ext.autodoc", "sphinx.ext.autodoc",
"sphinx.ext.autosummary", "sphinx.ext.autosummary",
"sphinx.ext.mathjax",
"myst_parser", "myst_parser",
"sphinxarg.ext", "sphinxarg.ext",
"sphinxcontrib.redoc", "sphinxcontrib.redoc",
"sphinxcontrib.openapi", "sphinxcontrib.openapi",
] ]
myst_enable_extensions = [
"dollarmath",
"amsmath",
]
html_static_path = ["_static"] html_static_path = ["_static"]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
......
...@@ -5,9 +5,9 @@ if __name__ == "__main__": ...@@ -5,9 +5,9 @@ if __name__ == "__main__":
url = "http://localhost:8000/v1/tasks/" url = "http://localhost:8000/v1/tasks/"
message = { message = {
"prompt": "Summer beach vacation style, a white cat wearing sunglasses sits on a surfboard. The fluffy-furred feline gazes directly at the camera with a relaxed expression. Blurred beach scenery forms the background featuring crystal-clear waters, distant green hills, and a blue sky dotted with white clouds. The cat assumes a naturally relaxed posture, as if savoring the sea breeze and warm sunlight. A close-up shot highlights the feline's intricate details and the refreshing atmosphere of the seaside.", "prompt": "镜头向左平移。",
"negative_prompt": "镜头晃动,色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走", "negative_prompt": "镜头晃动,色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走",
"image_path": "http://xxx.xxx.xxx.xxx/img_0.jpg", # 图片地址 "image_path": "assets/inputs/imgs/test_1.png", # 图片地址
} }
logger.info(f"message: {message}") logger.info(f"message: {message}")
......
#!/bin/bash #!/bin/bash
# Set paths # Set paths
lightx2v_path= lightx2v_path="/data/lightx2v-dev/"
model_path= model_path="/data/lightx2v-dev/Wan2.1-I2V-14B-480P/"
# Check parameters # Check parameters
if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then
...@@ -37,10 +37,10 @@ echo "==========================================" ...@@ -37,10 +37,10 @@ echo "=========================================="
# Start API server with distributed inference service # Start API server with distributed inference service
python -m lightx2v.api_server \ python -m lightx2v.api_server \
--model_cls wan2.1 \ --model_cls wan2.1_distill \
--task i2v \ --task i2v \
--model_path $model_path \ --model_path $model_path \
--config_json ${lightx2v_path}/configs/wan/wan_i2v_dist.json \ --config_json ${lightx2v_path}/configs/distill/wan_i2v_distill_4step_cfg.json \
--port 8000 \ --port 8000 \
--nproc_per_node 1 --nproc_per_node 1
......
#!/bin/bash #!/bin/bash
# set path and first # set path and first
lightx2v_path= lightx2v_path="/data/lightx2v-dev/"
model_path= model_path="/data/lightx2v-dev/Wan2.1-T2V-14B/"
# check section # check section
if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment