Datasets:
EntropyDrop commited on
Commit ·
bc88e82
1
Parent(s): 6c355a6
update
Browse files- DDJ_real2render/create_template.py +2 -2
- DDJ_real2render/template/template65.png +3 -0
- DDJ_real2render/template/template66.png +3 -0
- DDJ_real2render/template/template67.png +3 -0
- DDJ_real2render/test_batch.sh +8 -7
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img10.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img12.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img23.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img25.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img26_failed.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img27.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img28.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img29.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img3.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img30.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img31.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img32.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img33.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img42.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img43.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img44.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img45.png +3 -0
- DDJ_real2render/test_output/unofficial_prompt1_1k_t41_50_51_52/{img29.png → img29_failed.png} +0 -0
- DDJ_real2render/test_output/unofficial_prompt1_1k_t41_50_51_52/{img34.png → img34_failed.png} +0 -0
DDJ_real2render/create_template.py
CHANGED
|
@@ -6,9 +6,9 @@ from PIL import Image
|
|
| 6 |
import numpy as np
|
| 7 |
|
| 8 |
#VIEW_NAMES = ("front_left", "back_right", "front_left_overlay", "back_right_overlay")
|
| 9 |
-
|
| 10 |
#VIEW_NAMES = ("front_left_static", "back_left_static")
|
| 11 |
-
VIEW_NAMES = ("front_left_static", "back_left_static", "left_side_static", "right_side_static")
|
| 12 |
|
| 13 |
def resolve_renderer_path(renderer_path):
|
| 14 |
if not renderer_path or not os.path.exists(renderer_path):
|
|
|
|
| 6 |
import numpy as np
|
| 7 |
|
| 8 |
#VIEW_NAMES = ("front_left", "back_right", "front_left_overlay", "back_right_overlay")
|
| 9 |
+
VIEW_NAMES = ("front_left", "back_left")
|
| 10 |
#VIEW_NAMES = ("front_left_static", "back_left_static")
|
| 11 |
+
#VIEW_NAMES = ("front_left_static", "back_left_static", "left_side_static", "right_side_static")
|
| 12 |
|
| 13 |
def resolve_renderer_path(renderer_path):
|
| 14 |
if not renderer_path or not os.path.exists(renderer_path):
|
DDJ_real2render/template/template65.png
ADDED
|
Git LFS Details
|
DDJ_real2render/template/template66.png
ADDED
|
Git LFS Details
|
DDJ_real2render/template/template67.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_batch.sh
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
-
template_a=${template_a:-41}
|
| 2 |
-
template_b=${template_b:-
|
| 3 |
-
template_c=${template_c:-
|
| 4 |
-
template_d=${template_d:-
|
|
|
|
| 5 |
|
| 6 |
-
IS_OFFICIAL=
|
| 7 |
PROMPT_IDX=1
|
| 8 |
if [ $IS_OFFICIAL -eq 1 ]; then
|
| 9 |
OUTPUT_PREFIX="test_output/official"
|
|
@@ -13,7 +14,7 @@ else
|
|
| 13 |
ENTRY="real2render.py"
|
| 14 |
fi
|
| 15 |
SIZE="1K"
|
| 16 |
-
OUTPUT_DIR="${OUTPUT_PREFIX}_prompt${PROMPT_IDX}_${SIZE}_t${template_a}_${template_b}_${template_c}_${template_d}"
|
| 17 |
|
| 18 |
mkdir -p $OUTPUT_DIR
|
| 19 |
for i in 3 10 12 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45; do
|
|
@@ -33,5 +34,5 @@ for i in 3 10 12 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
|
| 33 |
echo "Warning: ${OUTPUT_FILE} exists. Ignored."
|
| 34 |
continue
|
| 35 |
fi
|
| 36 |
-
python ${ENTRY} "$img_file" -s $SIZE --prompt "prompts/prompt${PROMPT_IDX}.txt" -t template/template${template_a}.png -t template/template${template_b}.png -t template/template${template_c}.png -t template/template${template_d}.png -o ${OUTPUT_FILE}
|
| 37 |
done
|
|
|
|
| 1 |
+
template_a=${template_a:-41} # 男,耳麦,卫衣
|
| 2 |
+
template_b=${template_b:-51} # 女
|
| 3 |
+
template_c=${template_c:-65} # 男 中长发型
|
| 4 |
+
template_d=${template_d:-66} # 女,发夹,猫耳
|
| 5 |
+
template_e=${template_e:-67} # 动物
|
| 6 |
|
| 7 |
+
IS_OFFICIAL=0
|
| 8 |
PROMPT_IDX=1
|
| 9 |
if [ $IS_OFFICIAL -eq 1 ]; then
|
| 10 |
OUTPUT_PREFIX="test_output/official"
|
|
|
|
| 14 |
ENTRY="real2render.py"
|
| 15 |
fi
|
| 16 |
SIZE="1K"
|
| 17 |
+
OUTPUT_DIR="${OUTPUT_PREFIX}_prompt${PROMPT_IDX}_${SIZE}_t${template_a}_${template_b}_${template_c}_${template_d}_${template_e}"
|
| 18 |
|
| 19 |
mkdir -p $OUTPUT_DIR
|
| 20 |
for i in 3 10 12 23 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45; do
|
|
|
|
| 34 |
echo "Warning: ${OUTPUT_FILE} exists. Ignored."
|
| 35 |
continue
|
| 36 |
fi
|
| 37 |
+
python ${ENTRY} "$img_file" -s $SIZE --prompt "prompts/prompt${PROMPT_IDX}.txt" -t template/template${template_a}.png -t template/template${template_b}.png -t template/template${template_c}.png -t template/template${template_d}.png -t template/template${template_e}.png -o ${OUTPUT_FILE}
|
| 38 |
done
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img10.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img12.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img23.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img25.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img26_failed.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img27.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img28.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img29.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img3.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img30.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img31.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img32.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img33.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img42.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img43.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img44.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1K_t41_51_65_66_67/img45.png
ADDED
|
Git LFS Details
|
DDJ_real2render/test_output/unofficial_prompt1_1k_t41_50_51_52/{img29.png → img29_failed.png}
RENAMED
|
File without changes
|
DDJ_real2render/test_output/unofficial_prompt1_1k_t41_50_51_52/{img34.png → img34_failed.png}
RENAMED
|
File without changes
|