Skip to content

Commit

Permalink
Merge pull request #52 from rlekey/main
Browse files Browse the repository at this point in the history
Multi Camera Housekeeping
  • Loading branch information
mikel-brostrom authored May 10, 2023
2 parents 852c9cf + fec4c6e commit 2c2d537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions track.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def run(
show_vid = check_imshow()
cudnn.benchmark = True # set True to speed up constant image size inference
dataset = LoadStreams(source, img_size=imgsz, stride=stride)
nr_sources = 1
nr_sources = len(dataset.sources)
else:
dataset = LoadImages(source, img_size=imgsz, stride=stride)
nr_sources = 1
Expand Down Expand Up @@ -175,7 +175,7 @@ def run(
p = Path(p) # to Path
s += f'{i}: '
txt_file_name = p.name
save_path = str(save_dir / p.name) # im.jpg, vid.mp4, ...
save_path = str(save_dir / p.name) + str(i) # im.jpg, vid.mp4, ...
else:
p, im0, _ = path, im0s.copy(), getattr(dataset, 'frame', 0)
p = Path(p) # to Path
Expand Down

0 comments on commit 2c2d537

Please sign in to comment.