bsmock commited on
Commit
4e02bed
1 Parent(s): eef3287

Upload extract_structure_dataset.sh

Browse files
Files changed (1) hide show
  1. extract_structure_dataset.sh +23 -0
extract_structure_dataset.sh ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Script to extract/unzip and organize PubTables-1M.
2
+ # Remove the -v flag to suppress output to the console.
3
+ mkdir -p PubTables-1M-Structure/{images,train,test,val,words}
4
+ tar -xzvf PubTables-1M-Structure_Filelists.tar.gz --directory PubTables-1M-Structure/
5
+ tar -xzvf PubTables-1M-Structure_Annotations_Test.tar.gz --directory PubTables-1M-Structure/test/
6
+ tar -xzvf PubTables-1M-Structure_Annotations_Train.tar.gz --directory PubTables-1M-Structure/train/
7
+ tar -xzvf PubTables-1M-Structure_Annotations_Val.tar.gz --directory PubTables-1M-Structure/val/
8
+ tar -xzvf PubTables-1M-Structure_Images_Test.tar.gz --directory PubTables-1M-Structure/images/
9
+ tar -xzvf PubTables-1M-Structure_Images_Train.tar.gz --directory PubTables-1M-Structure/images/
10
+ tar -xzvf PubTables-1M-Structure_Images_Val.tar.gz --directory PubTables-1M-Structure/images/
11
+ tar -xzvf PubTables-1M-Structure_Table_Words.tar.gz --directory PubTables-1M-Structure/words/
12
+ mkdir -p PubTables-1M-Detection/{images,train,test,val,words}
13
+ tar -xzvf PubTables-1M-Detection_Filelists.tar.gz --directory PubTables-1M-Detection/
14
+ tar -xzvf PubTables-1M-Detection_Annotations_Test.tar.gz --directory PubTables-1M-Detection/test/
15
+ tar -xzvf PubTables-1M-Detection_Annotations_Train.tar.gz --directory PubTables-1M-Detection/train/
16
+ tar -xzvf PubTables-1M-Detection_Annotations_Val.tar.gz --directory PubTables-1M-Detection/val/
17
+ tar -xzvf PubTables-1M-Detection_Images_Test.tar.gz --directory PubTables-1M-Detection/images/
18
+ tar -xzvf PubTables-1M-Detection_Images_Train_Part1.tar.gz --directory PubTables-1M-Detection/images/
19
+ tar -xzvf PubTables-1M-Detection_Images_Train_Part2.tar.gz --directory PubTables-1M-Detection/images/
20
+ tar -xzvf PubTables-1M-Detection_Images_Val.tar.gz --directory PubTables-1M-Detection/images/
21
+ tar -xzvf PubTables-1M-Detection_Page_Words.tar.gz --directory PubTables-1M-Detection/words/
22
+ mkdir PubTables-1M-PDF-Annotations/
23
+ tar -xzvf PubTables-1M-PDF_Annotations.tar.gz --directory PubTables-1M-PDF-Annotations