Skip to content

Commit

Permalink
make sure vid is ok too
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonjchen committed Dec 22, 2024
1 parent 20bc603 commit ab53509
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ predict-bug-all-number:
./cog/generate.sh
cog predict -i route="https://connect.comma.ai/fe18f736cb0d7813/00000497--5809888120/1611/1635" -i renderType=ui

predict-bug-all-number-360:
./cog/generate.sh
cog predict -i route="https://connect.comma.ai/fe18f736cb0d7813/00000497--5809888120/1611/1635" -i renderType=360


# Push using modified cog
push:
Expand Down
2 changes: 1 addition & 1 deletion ffmpeg_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def make_ffmpeg_clip(
raise ValueError(f"Invalid choice: {render_type}")
if not os.path.exists(data_dir):
raise ValueError(f"Invalid data_dir: {data_dir}")
route = re.sub(r"--\d+$", "", route_or_segment)
route = re.sub(r"--\d{,4}+$", "", route_or_segment)
route_date = re.sub(r"^[^|]+\|", "", route)

if format not in ["h264", "hevc"]:
Expand Down

0 comments on commit ab53509

Please sign in to comment.