Skip to content

Fix: Add support for str imgs_dir in encode_video_frames #640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

oulianov
Copy link

@oulianov oulianov commented Jan 15, 2025

What this does

Hey!

The parameter imgs_dir was typed as a str or Path, but the function doesn't work if imgs_dir is not a Path due to line below:

("-i", str(imgs_dir / "frame_%06d.png")),

This PR fixes this by casting imgs_dir to a Path.

How it was tested

mypy

@oulianov oulianov changed the title Fix: Add support for str imgs_dir Fix: Add support for str imgs_dir in encode_video_frames Jan 15, 2025
@CarolinePascal
Copy link
Contributor

Hi @oulianov !

Thank you for your PR and contribution to LeRobot library ! Unfortunately, It seems we didn't get to see your PR in time, and that the issue has been solved and merged in #915. I'm closing your PR, but feel free to fill more of them with new fixes ;)

Best,

Caroline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants