Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #188 from abagshaw/master
Browse files Browse the repository at this point in the history
Fix file path for YOLOv1 training
  • Loading branch information
thtrieu committed Apr 26, 2017
2 parents 4ca6969 + 7436d3f commit 1dcd74e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions darkflow/net/yolo/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def parse(self, exclusive = False):
"""
meta = self.meta
ext = '.parsed'
history = os.path.join('net', 'yolo', 'parse-history.txt');
history = os.path.join('darkflow', 'net', 'yolo', 'parse-history.txt');
if not os.path.isfile(history):
file = open(history, 'w')
file.close()
Expand All @@ -36,7 +36,7 @@ def parse(self, exclusive = False):
print('\n{} parsing {}'.format(meta['model'], ann))
dumps = pascal_voc_clean_xml(ann, meta['labels'], exclusive)

save_to = os.path.join('net', 'yolo', meta['name'])
save_to = os.path.join('darkflow', 'net', 'yolo', meta['name'])
while True:
if not os.path.isfile(save_to + ext): break
save_to = save_to + '_'
Expand Down

0 comments on commit 1dcd74e

Please sign in to comment.