Fix a bug
when run :./labelImg.py
Error:
File "./labelImg.py", line 815
extensions = {'.jpeg','.jpg', '.png', '.bmp'}
Fix:
change {'.jpeg','.jpg', '.png', '.bmp'} to ['.jpeg','.jpg', '.png', '.bmp']
Environment:python=2.6.9 qt=4.11.3 OX=mac os
This commit is contained in:
parent
c73e65eb40
commit
7b5a43fce1
@ -812,7 +812,7 @@ class MainWindow(QMainWindow, WindowMixin):
|
|||||||
self.loadFile(filename)
|
self.loadFile(filename)
|
||||||
|
|
||||||
def scanAllImages(self, folderPath):
|
def scanAllImages(self, folderPath):
|
||||||
extensions = {'.jpeg','.jpg', '.png', '.bmp'}
|
extensions = ['.jpeg','.jpg', '.png', '.bmp']
|
||||||
images = []
|
images = []
|
||||||
|
|
||||||
for root, dirs, files in os.walk(folderPath):
|
for root, dirs, files in os.walk(folderPath):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user