-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathprepare_data.sh
executable file
·63 lines (58 loc) · 1.88 KB
/
prepare_data.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
56
57
58
59
60
61
62
63
## Pascal3D+
cd Pascal3D
wget 'ftp://cs.stanford.edu/cs/cvgl/PASCAL3D+_release1.1.zip'
unzip PASCAL3D+_release1.1.zip && rm PASCAL3D+_release1.1.zip
mv PASCAL3D+_release1.1/* ./ && rm -r PASCAL3D+_release1.1
rm CAD/*.mat && python off2obj.py
python create_annotation.py
python render.py
cd ..
## ObjectNet3D
cd ObjectNet3D
wget 'ftp://cs.stanford.edu/cs/cvgl/ObjectNet3D/ObjectNet3D_images.zip'
unzip ObjectNet3D_images.zip && rm ObjectNet3D_images.zip
mv ObjectNet3D/* ./ && rm -r ObjectNet3D
wget 'ftp://cs.stanford.edu/cs/cvgl/ObjectNet3D/ObjectNet3D_cads.zip'
unzip ObjectNet3D_cads.zip && rm ObjectNet3D_cads.zip
mv ObjectNet3D/* ./ && rm -r ObjectNet3D
wget 'ftp://cs.stanford.edu/cs/cvgl/ObjectNet3D/ObjectNet3D_annotations.zip'
unzip ObjectNet3D_annotations.zip && rm ObjectNet3D_annotations.zip
mv ObjectNet3D/* ./ && rm -r ObjectNet3D
wget 'ftp://cs.stanford.edu/cs/cvgl/ObjectNet3D/ObjectNet3D_image_sets.zip'
unzip ObjectNet3D_image_sets.zip && rm ObjectNet3D_image_sets.zip
mv ObjectNet3D/* ./ && rm -r ObjectNet3D
python off2obj.py
python create_annotation.py
python render.py
cd ..
## Pix3D
cd Pix3D
wget 'http://pix3d.csail.mit.edu/data/pix3d.zip'
unzip pix3d.zip && rm pix3d.zip
python clean_dataset.py
python create_annotation.py
python render.py
cd ..
## LineMod
cd LineMod
wget 'ptak.felk.cvut.cz/6DB/public/datasets/hinterstoisser/test.zip'
wget 'ptak.felk.cvut.cz/6DB/public/datasets/hinterstoisser/models.zip'
unzip test.zip && rm test.zip
unzip models.zip && rm models.zip
python ply2obj.py
python create_annotation.py
python render.py
cd ..
## SUN397
cd SUN
wget 'vision.princeton.edu/projects/2010/SUN/SUN397.tar.gz'
tar -xvf SUN397.tar.gz && rm SUN397.tar.gz
python resize_img.py
cd ..
## ShapeNetCore
cd ShapeNetCore
wget 'shapenet.cs.stanford.edu/shapenet/obj-zip/ShapeNetCore.v2.zip'
unzip ShapeNetCore.v2.zip && rm ShapeNetCore.v2.zip
python render.py
python clean_annotation_file.py
cd ..