File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 9
9
done
10
10
11
11
12
- # train/test/vis split
12
+ # Split: split train -> train & val
13
13
cat fetch_data/train_shuffled.flist | shuf > celeba-hq-dataset/temp_train_shuffled.flist
14
14
cat celeba-hq-dataset/temp_train_shuffled.flist | head -n 2000 > celeba-hq-dataset/val_shuffled.flist
15
15
cat celeba-hq-dataset/temp_train_shuffled.flist | tail -n +2001 > celeba-hq-dataset/train_shuffled.flist
16
-
17
16
cat fetch_data/val_shuffled.flist > celeba-hq-dataset/visual_test_shuffled.flist
18
17
18
+ mkdir celeba-hq-dataset/train_256/
19
+ mkdir celeba-hq-dataset/val_source_256/
20
+ mkdir celeba-hq-dataset/visual_test_source_256/
19
21
20
- # Split
21
- for mode in train \
22
- val \
23
- visual_test
24
- do
25
- mkdir celeba-hq-dataset/$mode " _source_256/"
26
- cat celeba-hq-dataset/$mode " _shuffled.flist" | xargs -I {} mv celeba-hq-dataset/data256x256/{} celeba-hq-dataset/$mode " _source_256/"
27
- done
22
+ cat celeba-hq-dataset/train_shuffled.flist | xargs -I {} mv celeba-hq-dataset/data256x256/{} celeba-hq-dataset/train_256/
23
+ cat celeba-hq-dataset/val_shuffled.flist | xargs -I {} mv celeba-hq-dataset/data256x256/{} celeba-hq-dataset/val_source_256/
24
+ cat celeba-hq-dataset/visual_test_shuffled.flist | xargs -I {} mv celeba-hq-dataset/data256x256/{} celeba-hq-dataset/visual_test_source_256/
28
25
29
26
30
27
# create location config celeba.yaml
You can’t perform that action at this time.
0 commit comments