Commit 9a7c825f authored by mashun1's avatar mashun1
Browse files

Update README.md

parent 59945151
......@@ -110,17 +110,17 @@ https://huggingface.co/ali-vilab/i2vgen-xl/tree/main
### 命令行
CUDA_VISIBLE_DEVICES=1 python inference.py --cfg configs/i2vgen_xl_infer.yaml
HIP_VISIBLE_DEVICES=1 python inference.py --cfg configs/i2vgen_xl_infer.yaml
# 指定输入和模型
CUDA_VISIBLE_DEVICES=1 python inference.py --cfg configs/i2vgen_xl_infer.yaml test_list_path data/test_list_for_i2vgen.txt test_model i2vgen-xl/i2vgen_xl_00854500.pth
HIP_VISIBLE_DEVICES=1 python inference.py --cfg configs/i2vgen_xl_infer.yaml test_list_path data/test_list_for_i2vgen.txt test_model i2vgen-xl/i2vgen_xl_00854500.pth
test_list_path 表示输入图像路径及其对应的标题请参考演示文件 data/test_list_for_i2vgen.txt 中的特定格式和建议。test_model 是加载模型的路径。
### gradio页面
python gradio_app.py
HIP_VISIBLE_DEVICES=1 python gradio_app.py
注意:第一次执行该命令会下载默认文件,当默认文件下载完毕后(程序会报错)需手动注释/删除 `~/.cache/modelscope/hub/damo/i2vgen-xl/ms_wrapper.py`中的代码
......
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