Upload inference.py
Browse files- inference.py +1 -1
inference.py
CHANGED
|
@@ -64,7 +64,7 @@ class ModelInference:
|
|
| 64 |
|
| 65 |
self.class_names = []
|
| 66 |
seen_names: set[str] = set()
|
| 67 |
-
with open(labels_path) as f:
|
| 68 |
for line in f:
|
| 69 |
line = line.strip()
|
| 70 |
if not line:
|
|
|
|
| 64 |
|
| 65 |
self.class_names = []
|
| 66 |
seen_names: set[str] = set()
|
| 67 |
+
with open(labels_path, encoding="utf-8") as f:
|
| 68 |
for line in f:
|
| 69 |
line = line.strip()
|
| 70 |
if not line:
|