8000 objectDetection: data.py: Fix '_csv.reader' object has no attribute '… by edowson · Pull Request #2228 · NVIDIA/DIGITS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

objectDetection: data.py: Fix '_csv.reader' object has no attribute '… #2228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion digits/extensions/data/objectDetection/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, **kwargs):
s = StringIO.StringIO(self.custom_classes)
50EC reader = csv.reader(s)
self.class_mappings = {}
for idx, name in enumerate(reader.next()):
for idx, name in enumerate(next(reader)):
self.class_mappings[name.strip().lower()] = idx
else:
self.class_mappings = None
Expand Down
0