Commit ce271da9 authored by jerrrrry's avatar jerrrrry
Browse files

Update .gitlab-ci.yml

parent 6499d200
...@@ -77,8 +77,19 @@ benchmark_wan2.1: ...@@ -77,8 +77,19 @@ benchmark_wan2.1:
# 运行第一次测试(seed=2675441231) # 运行第一次测试(seed=2675441231)
- echo "Running first test with seed=2675441231" - echo "Running first test with seed=2675441231"
- | - |
# 修改Python脚本以使用第一个seed # 先检查原始文件中的seed设置行
sed 's/prompt\["3"\]\["inputs"\]\["seed"\] = args.seed/prompt["3"]["inputs"]["seed"] = 2675441231/' wan_t2v_14B_1_gpu.py > temp_test1.py echo "Checking original seed line in wan_t2v_14B_1_gpu.py:"
grep -n "seed" wan_t2v_14B_1_gpu.py || echo "No seed line found"
# 创建第一个测试文件,直接替换seed值
cp wan_t2v_14B_1_gpu.py temp_test1.py
# 使用更简单的方法:直接替换数字
sed -i 's/args\.seed/2675441231/g' temp_test1.py
# 验证替换是否成功
echo "Verifying seed replacement in temp_test1.py:"
grep -n "2675441231" temp_test1.py || echo "Seed replacement failed!"
# 记录开始时间 # 记录开始时间
start_time=$(date +%s) start_time=$(date +%s)
...@@ -116,8 +127,15 @@ benchmark_wan2.1: ...@@ -116,8 +127,15 @@ benchmark_wan2.1:
# 运行第二次测试(seed=1234567890) # 运行第二次测试(seed=1234567890)
- echo "Running second test with seed=1234567890" - echo "Running second test with seed=1234567890"
- | - |
# 修改Python脚本以使用第二个seed # 创建第二个测试文件
sed 's/prompt\["3"\]\["inputs"\]\["seed"\] = args.seed/prompt["3"]["inputs"]["seed"] = 1234567890/' wan_t2v_14B_1_gpu.py > temp_test2.py cp wan_t2v_14B_1_gpu.py temp_test2.py
# 使用更简单的方法:直接替换数字
sed -i 's/args\.seed/1234567890/g' temp_test2.py
# 验证替换是否成功
echo "Verifying seed replacement in temp_test2.py:"
grep -n "1234567890" temp_test2.py || echo "Seed replacement failed!"
# 记录开始时间 # 记录开始时间
start_time=$(date +%s) start_time=$(date +%s)
......
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