@@ -71,24 +71,23 @@ def renameFolderList(nameOut,folderList,labelList,labelNames=None):
71
71
72
72
73
73
if __name__ == "__main__" :
74
- "C:/Users/andres/Desktop/New folder (2)/MFPT Data 32x32 Spectrograms"
75
- f1b = "C:/Users/andres/Desktop/New folder (2)/MFPT Data 96x96 Spectrograms/1 - Three Baseline Conditions"
76
- f2b = "C:/Users/andres/Desktop/New folder (2)/MFPT Data 96x96 Spectrograms/2 - Three Outer Race Fault Conditions"
77
- f3b = "C:/Users/andres/Desktop/New folder (2)/MFPT Data 96x96 Spectrograms/3 - Seven More Outer Race Fault Conditions"
78
- f4b = "C:/Users/andres/Desktop/New folder (2)/MFPT Data 96x96 Spectrograms/4 - Seven Inner Fault Conditions"
79
-
80
- f1 = [os .path .join (f1b ,elem ) for elem in sorted (os .listdir (f1b ))] #GET ALL SUB FOLDER
81
- f2 = [os .path .join (f2b ,elem ) for elem in sorted (os .listdir (f2b ))] #GET ALL SUB FOLDER
82
- f3 = [os .path .join (f3b ,elem ) for elem in sorted (os .listdir (f3b ))] #GET ALL SUB FOLDER
83
- f4 = [os .path .join (f4b ,elem ) for elem in sorted (os .listdir (f4b ))] #GET ALL SUB FOLDER
84
-
85
- folderL = f1 + f2 + f3 + f4
86
- labelL = [1 ,1 ,1 ,
87
- 0 ,0 ,0 ,
88
- 0 ,0 ,0 ,0 ,0 ,0 ,0 ,
89
- 2 ,2 ,2 ,2 ,2 ,2 ,2 ]
74
+ "C:/Users/andres/Desktop/New folder (2)/MFPT Data 96x96 Spectrograms"
75
+ f1b = "/home/andres/Desktop/Untitled Folder/MFPT Data 96x96 Spectrograms/MFPT Data 96x96 Spectrograms/OR"
76
+ f2b = "/home/andres/Desktop/Untitled Folder/MFPT Data 96x96 Spectrograms/MFPT Data 96x96 Spectrograms/N"
77
+ f3b = "/home/andres/Desktop/Untitled Folder/MFPT Data 96x96 Spectrograms/MFPT Data 96x96 Spectrograms/IR"
78
+
79
+ # f1 = [os.path.join(f1b,elem) for elem in sorted(os.listdir(f1b))] #GET ALL SUB FOLDER
80
+ # f2 = [os.path.join(f2b,elem) for elem in sorted(os.listdir(f2b))] #GET ALL SUB FOLDER
81
+ # f3 = [os.path.join(f3b,elem) for elem in sorted(os.listdir(f3b))] #GET ALL SUB FOLDER
82
+ # f4 = [os.path.join(f4b,elem) for elem in sorted(os.listdir(f4b))] #GET ALL SUB FOLDER
83
+ #
84
+ # folderL = f1 + f2 + f3 + f4
85
+
86
+ folderL = [f1b , f2b , f3b ]
87
+
88
+ labelL = [0 ,1 ,2 ]
90
89
lN = {0 : "Outer" , 1 : "Baseline" ,2 : "Inner" }
91
90
92
91
#OutFolderName, listOfFolderToLabel, CorrespondingLabels, Optional Label names
93
- renameFolderList ('MFPTFFT96 ' , folderL , labelL , labelNames = lN )
92
+ renameFolderList ('MFPT96SpectrogramsV2 ' , folderL , labelL , labelNames = lN )
94
93
0 commit comments