Upload root file face_mask.sh
Browse files- face_mask.sh +16 -0
face_mask.sh
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# full_list.txt์ ๊ฐ ์ค์ ์ฝ์ด์ ๋ฐ๋ณต ์คํ
|
| 4 |
+
while IFS= read -r line; do
|
| 5 |
+
echo "Processing: $line"
|
| 6 |
+
|
| 7 |
+
# 1. ๋๋ ํ ๋ฆฌ ์์ฑ
|
| 8 |
+
mkdir -p "/root/aist_hdf5/rec/$line"
|
| 9 |
+
|
| 10 |
+
# 2. ํด๋ ์ด๋ (png_selected/$line โ aist_hdf5/rec/$line/images)
|
| 11 |
+
mv "/root/png_selected/$line" "/root/aist_hdf5/rec/$line/images"
|
| 12 |
+
|
| 13 |
+
# 3. ๋ง์คํฌ ์ถ์ถ ์คํ
|
| 14 |
+
python /root/StableAnimator_Music/face_mask_extraction.py --image_folder="/root/aist_hdf5/rec/$line/images"
|
| 15 |
+
|
| 16 |
+
done < /root/aist_hdf5/full_list.txt
|