forked from ant-louis/gan-shoes-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsplit_dataset.sh
executable file
·63 lines (43 loc) · 1.7 KB
/
split_dataset.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!bin/bash
dest=/home/tom/Documents/Uliege/SecondSemester/Deep\ Learning/Shoes-generator/dataset/
source=/home/tom/Documents/Uliege/SecondSemester/Deep\ Learning/Shoes-generator/ut-zap50k-images-square
source_subdir=Boots/Ankle
dest_subdir=boots-ankle
cd "$source"/"$source_subdir"
find . -type f -print0 | xargs -0 mv -t "$dest"/"$dest_subdir"
source_subdir=Boots/Knee\ High
dest_subdir=boots-kneehigh
cd "$source"/"$source_subdir"
find . -type f -print0 | xargs -0 mv -t "$dest"/"$dest_subdir"
source_subdir=Boots/Mid-Calf
dest_subdir=boots-midcalf
cd "$source"/"$source_subdir"
find . -type f -print0 | xargs -0 mv -t "$dest"/"$dest_subdir"
source_subdir=Sandals/Flat
dest_subdir=sandals-flats
cd "$source"/"$source_subdir"
find . -type f -print0 | xargs -0 mv -t "$dest"/"$dest_subdir"
source_subdir=Shoes/Flats
dest_subdir=shoes-flats
cd "$source"/"$source_subdir"
find . -type f -print0 | xargs -0 mv -t "$dest"/"$dest_subdir"
source_subdir=Shoes/Heels
dest_subdir=shoes-heels
cd "$source"/"$source_subdir"
find . -type f -print0 | xargs -0 mv -t "$dest"/"$dest_subdir"
source_subdir=Shoes/Loafers
dest_subdir=shoes-loafers
cd "$source"/"$source_subdir"
find . -type f -print0 | xargs -0 mv -t "$dest"/"$dest_subdir"
source_subdir=Shoes/Oxfords
dest_subdir=shoes-oxfords
cd "$source"/"$source_subdir"
find . -type f -print0 | xargs -0 mv -t "$dest"/"$dest_subdir"
source_subdir=Shoes/Sneakers\ and\ Athletic\ Shoes
dest_subdir=shoes-athletic
cd "$source"/"$source_subdir"
find . -type f -print0 | xargs -0 mv -t "$dest"/"$dest_subdir"
source_subdir=Slippers/Slippers\ Flats
dest_subdir=slippers-flats
cd "$source"/"$source_subdir"
find . -type f -print0 | xargs -0 mv -t "$dest"/"$dest_subdir"