-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·26 lines (22 loc) · 1.32 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# 启动第一个命令并重定向输出
HF_ENDPOINT=https://hf-mirror.com CUDA_VISIBLE_DEVICES=2 python main.py \
--prompt_path="/root/shiym_proj/DiffLook/data/prompt/prompt.txt" \
--negative_prompt_path="/root/shiym_proj/DiffLook/data/prompt/negative.txt" \
--images_directory="/root/shiym_proj/DiffLook/data/part1" \
--start_id="20" \
--suffix_text="a woman img" \
--save_path="/root/shiym_proj/DiffLook/outputs/part1" > part1.log 2>&1 &
# 启动第二个命令并重定向输出
HF_ENDPOINT=https://hf-mirror.com CUDA_VISIBLE_DEVICES=4 python main.py \
--prompt_path="/root/shiym_proj/DiffLook/data/prompt/prompt.txt" \
--negative_prompt_path="/root/shiym_proj/DiffLook/data/prompt/negative.txt" \
--images_directory="/root/shiym_proj/DiffLook/data/part2" \
--save_path="/root/shiym_proj/DiffLook/outputs/part2" > part2.log 2>&1 &
# # 启动第三个命令并重定向输出
# HF_ENDPOINT=https://hf-mirror.com CUDA_VISIBLE_DEVICES=7 python main.py \
# --prompt_path="/root/shiym_proj/DiffLook/data/prompt/prompt.txt" \
# --negative_prompt_path="/root/shiym_proj/DiffLook/data/prompt/negative.txt" \
# --images_directory="/root/shiym_proj/DiffLook/data/part3" \
# --save_path="/root/shiym_proj/DiffLook/outputs/part3" > part3.log 2>&1 &
wait # 等待所有后台命令结束