Merge pull request #70 from jveitchmichaelis/patch-2
Fix absolute path in class name loader
This commit is contained in:
commit
c164c87935
|
@ -22,7 +22,7 @@ def load_classes(path):
|
||||||
"""
|
"""
|
||||||
Loads class labels at 'path'
|
Loads class labels at 'path'
|
||||||
"""
|
"""
|
||||||
fp = open('data/coco.names', 'r')
|
fp = open(path, 'r')
|
||||||
names = fp.read().split('\n')
|
names = fp.read().split('\n')
|
||||||
return list(filter(None, names)) # filter removes empty strings (such as last line)
|
return list(filter(None, names)) # filter removes empty strings (such as last line)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue