PIEthonista commited on
Commit
f91b4c8
·
1 Parent(s): ce50ea9
images_zip/custom1024x1024/images_part_00000.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6949ccfd99014bd565bffa47462751248aafd0bbd2c19ce29a547ba9db9cc84a
3
- size 28810311
 
 
 
 
images_zip/custom512x512_matte_white_background/images_part_00000.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3c4891f9a8ac6a712bd5c118e156c43487b6fb8bd42cff92840017d080ec1ddf
3
- size 3758288
 
 
 
 
scripts/03_batch_image_resize.sh CHANGED
@@ -52,14 +52,30 @@
52
  # MODE="lanczos" # nearest | bilinear | bicubic | lanczos
53
  # NUM_WORKERS=-1 # -1 to use all cpu cores
54
 
55
- INPUT_DIR="images/custom1024x1024_matte_white_background/female2"
56
- OUTPUT_DIR="images/custom512x512_matte_white_background/female2"
 
 
 
 
 
 
 
 
57
  EXT="png"
58
  TARGET_SIZE_W=512
59
  TARGET_SIZE_H=512
60
  MODE="lanczos" # nearest | bilinear | bicubic | lanczos
61
  NUM_WORKERS=-1 # -1 to use all cpu cores
62
 
 
 
 
 
 
 
 
 
63
  # ===== End of Configuration ====================================================
64
 
65
 
 
52
  # MODE="lanczos" # nearest | bilinear | bicubic | lanczos
53
  # NUM_WORKERS=-1 # -1 to use all cpu cores
54
 
55
+ # INPUT_DIR="images/custom1024x1024_matte_white_background/female2"
56
+ # OUTPUT_DIR="images/custom512x512_matte_white_background/female2"
57
+ # EXT="png"
58
+ # TARGET_SIZE_W=512
59
+ # TARGET_SIZE_H=512
60
+ # MODE="lanczos" # nearest | bilinear | bicubic | lanczos
61
+ # NUM_WORKERS=-1 # -1 to use all cpu cores
62
+
63
+ INPUT_DIR="images/custom1024x1024_matte_white_background/exemplars_male"
64
+ OUTPUT_DIR="images/custom512x512_matte_white_background/exemplars_male"
65
  EXT="png"
66
  TARGET_SIZE_W=512
67
  TARGET_SIZE_H=512
68
  MODE="lanczos" # nearest | bilinear | bicubic | lanczos
69
  NUM_WORKERS=-1 # -1 to use all cpu cores
70
 
71
+ # INPUT_DIR="images/custom1024x1024_matte_white_background/exemplars_female"
72
+ # OUTPUT_DIR="images/custom512x512_matte_white_background/exemplars_female"
73
+ # EXT="png"
74
+ # TARGET_SIZE_W=512
75
+ # TARGET_SIZE_H=512
76
+ # MODE="lanczos" # nearest | bilinear | bicubic | lanczos
77
+ # NUM_WORKERS=-1 # -1 to use all cpu cores
78
+
79
  # ===== End of Configuration ====================================================
80
 
81
 
scripts/05_run_segmentation.sh CHANGED
@@ -16,7 +16,9 @@ echo "Script started at: $start_time" | tee -a "$log_file"
16
  # python -m src.run_deeplab --resolution 256 --dataset_root images/images256x256 --output_dir segmaps/segmaps256x256
17
  # python -m src.run_deeplab --resolution 1024 --dataset_root images/custom1024x1024/male --output_dir segmaps/custom1024x1024/male
18
  # python -m src.run_deeplab --resolution 1024 --dataset_root images/custom1024x1024/female --output_dir segmaps/custom1024x1024/female
19
- python -m src.run_deeplab --resolution 1024 --dataset_root images/custom1024x1024/female2 --output_dir segmaps/custom1024x1024/female2
 
 
20
 
21
 
22
 
 
16
  # python -m src.run_deeplab --resolution 256 --dataset_root images/images256x256 --output_dir segmaps/segmaps256x256
17
  # python -m src.run_deeplab --resolution 1024 --dataset_root images/custom1024x1024/male --output_dir segmaps/custom1024x1024/male
18
  # python -m src.run_deeplab --resolution 1024 --dataset_root images/custom1024x1024/female --output_dir segmaps/custom1024x1024/female
19
+ # python -m src.run_deeplab --resolution 1024 --dataset_root images/custom1024x1024/female2 --output_dir segmaps/custom1024x1024/female2
20
+ python -m src.run_deeplab --resolution 1024 --dataset_root images/custom1024x1024/exemplars_male --output_dir segmaps/custom1024x1024/exemplars_male
21
+ # python -m src.run_deeplab --resolution 1024 --dataset_root images/custom1024x1024/exemplars_female --output_dir segmaps/custom1024x1024/exemplars_female
22
 
23
 
24
 
scripts/07_edit_image_background.sh CHANGED
@@ -37,14 +37,30 @@
37
  # EXT="png"
38
  # NUM_WORKERS=-1
39
 
40
- SOURCE_DIR="images/custom1024x1024/female2"
41
- OUTPUT_DIR="images/custom1024x1024_matte_white_background/female2"
42
- SEGMAP_DIR="segmaps/custom1024x1024/female2"
 
 
 
 
 
 
 
 
43
  MASK_CLASSES="background" # i.e. "background cloth hat" refer src.utils.constant_utils
44
  BACKGROUND_COLOR="[225,225,225]" # matte_white
45
  EXT="png"
46
  NUM_WORKERS=-1
47
 
 
 
 
 
 
 
 
 
48
  # ===== End of Configuration ====================================================
49
 
50
 
 
37
  # EXT="png"
38
  # NUM_WORKERS=-1
39
 
40
+ # SOURCE_DIR="images/custom1024x1024/female2"
41
+ # OUTPUT_DIR="images/custom1024x1024_matte_white_background/female2"
42
+ # SEGMAP_DIR="segmaps/custom1024x1024/female2"
43
+ # MASK_CLASSES="background" # i.e. "background cloth hat" refer src.utils.constant_utils
44
+ # BACKGROUND_COLOR="[225,225,225]" # matte_white
45
+ # EXT="png"
46
+ # NUM_WORKERS=-1
47
+
48
+ SOURCE_DIR="images/custom1024x1024/exemplars_male"
49
+ OUTPUT_DIR="images/custom1024x1024_matte_white_background/exemplars_male"
50
+ SEGMAP_DIR="segmaps/custom1024x1024/exemplars_male"
51
  MASK_CLASSES="background" # i.e. "background cloth hat" refer src.utils.constant_utils
52
  BACKGROUND_COLOR="[225,225,225]" # matte_white
53
  EXT="png"
54
  NUM_WORKERS=-1
55
 
56
+ # SOURCE_DIR="images/custom1024x1024/exemplars_female"
57
+ # OUTPUT_DIR="images/custom1024x1024_matte_white_background/exemplars_female"
58
+ # SEGMAP_DIR="segmaps/custom1024x1024/exemplars_female"
59
+ # MASK_CLASSES="background" # i.e. "background cloth hat" refer src.utils.constant_utils
60
+ # BACKGROUND_COLOR="[225,225,225]" # matte_white
61
+ # EXT="png"
62
+ # NUM_WORKERS=-1
63
+
64
  # ===== End of Configuration ====================================================
65
 
66