Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpagnon committed Sep 2, 2024
1 parent 36c71dd commit 461a235
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Sports2D/Sports2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,10 @@ def base_params(config_dict):
time_ranges = [None]
else:
# video_files
video_files = config_dict.get('project').get('video_input')
if isinstance(video_files, str):
video_files = [Path(video_files)]
if isinstance(video_input, str):
video_files = [Path(video_input)]
else:
video_files = [Path(v) for v in video_files]
video_files = [Path(v) for v in video_input]

# frame_rates
frame_rates = []
Expand Down Expand Up @@ -451,12 +450,14 @@ def main():
print('2video_dir', video_dir)
video_input = new_config.get('project').get('video_input')
print('3video_input', video_input)
if isinstance(video_files, str):
video_files = [Path(video_files)]
print('4video_files: str', video_files)
if isinstance(video_input, str):
video_files = [Path(video_input)]
print('4video_files str', video_files)
else:
video_files = [Path(v) for v in video_files]
print('5video_files: list', video_files)
video_files = [Path(v) for v in video_input]
print('5video_files list', video_files)


Sports2D.process(new_config)


Expand Down

0 comments on commit 461a235

Please sign in to comment.