From 212597fddd47cedd7540a2a7dee66a8e5d9666ba Mon Sep 17 00:00:00 2001 From: Josh Veitch-Michaelis Date: Sun, 6 Jan 2019 20:54:04 +0000 Subject: [PATCH] Fix absolute path in class name loader --- utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.py b/utils/utils.py index 0b442799..9a7853e3 100755 --- a/utils/utils.py +++ b/utils/utils.py @@ -22,7 +22,7 @@ def load_classes(path): """ Loads class labels at 'path' """ - fp = open('data/coco.names', 'r') + fp = open(path, 'r') names = fp.read().split('\n') return list(filter(None, names)) # filter removes empty strings (such as last line)