Skip to content

Commit ff2a5fb

Browse files
authored
Update LIVEFolder.py
1 parent dc40472 commit ff2a5fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

LIVEFolder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111

1212

1313
def getFileName(path, suffix):
14-
''' 获取指定目录下的所有指定后缀的文件名 '''
1514
filename = []
1615
f_list = os.listdir(path)
1716
# print f_list
1817
for i in f_list:
19-
# os.path.splitext():分离文件名与扩展名
2018
if os.path.splitext(i)[1] == suffix:
2119
filename.append(i)
2220
return filename
@@ -135,4 +133,4 @@ def default_loader(path):
135133
train_index = index[0:round(0.8*29)]
136134
test_index = index[round(0.8*29):29]
137135
trainset = LIVEFolder(root = liveroot, loader = default_loader, index = train_index)
138-
testset = LIVEFolder(root = liveroot, loader = default_loader, index = test_index)
136+
testset = LIVEFolder(root = liveroot, loader = default_loader, index = test_index)

0 commit comments

Comments
 (0)