-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgather_LADD.sh
executable file
·48 lines (39 loc) · 2.04 KB
/
gather_LADD.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
cd dataset
# Creating dirs
mkdir full_train_ds
mkdir full_train_ds/Annotations
mkdir full_train_ds/JPEGImages
# Copy images and annotations
cp LADD/spring_korolev_2019/Annotations/* full_train_ds/Annotations/
cp LADD/summer_moscow_2019/Annotations/* full_train_ds/Annotations/
cp LADD/summer_tambov_2019/Annotations/* full_train_ds/Annotations/
cp LADD/winter_moscow_2018/Annotations/* full_train_ds/Annotations/
cp LADD/summer_nnovgorod_2021/Annotations/* full_train_ds/Annotations/
cp LADD/spring_korolev_2019/JPEGImages/* full_train_ds/JPEGImages/
cp LADD/summer_moscow_2019/JPEGImages/* full_train_ds/JPEGImages/
cp LADD/summer_tambov_2019/JPEGImages/* full_train_ds/JPEGImages/
cp LADD/winter_moscow_2018/JPEGImages/* full_train_ds/JPEGImages/
cp LADD/summer_nnovgorod_2021/JPEGImages/* full_train_ds/JPEGImages/
# Merge imageset
mkdir -p full_train_ds/ImageSets/Main
cat LADD/spring_korolev_2019/ImageSets/Main/train.txt \
LADD/summer_moscow_2019/ImageSets/Main/train.txt \
LADD/summer_tambov_2019/ImageSets/Main/train.txt \
LADD/winter_moscow_2018/ImageSets/Main/train.txt \
LADD/summer_nnovgorod_2021/ImageSets/Main/train.txt > full_train_ds/ImageSets/Main/train.txt
cat LADD/spring_korolev_2019/ImageSets/Main/trainval.txt \
LADD/summer_moscow_2019/ImageSets/Main/trainval.txt \
LADD/summer_tambov_2019/ImageSets/Main/trainval.txt \
LADD/winter_moscow_2018/ImageSets/Main/trainval.txt \
LADD/summer_nnovgorod_2021/ImageSets/Main/trainval.txt > full_train_ds/ImageSets/trainval.txt
cat LADD/spring_korolev_2019/ImageSets/Main/val.txt \
LADD/summer_moscow_2019/ImageSets/Main/val.txt \
LADD/summer_tambov_2019/ImageSets/Main/val.txt \
LADD/winter_moscow_2018/ImageSets/Main/val.txt \
LADD/summer_nnovgorod_2021/ImageSets/Main/val.txt > full_train_ds/ImageSets/Main/val.txt
cat LADD/spring_korolev_2019/ImageSets/Main/test.txt \
LADD/summer_moscow_2019/ImageSets/Main/test.txt \
LADD/summer_tambov_2019/ImageSets/Main/test.txt \
LADD/winter_moscow_2018/ImageSets/Main/test.txt \
LADD/summer_nnovgorod_2021/ImageSets/Main/test.txt > full_train_ds/ImageSets/Main/test.txt
cd ..