Fix latent bugs and misleading errors in create_videos - #3468
Draft
deruyter92 wants to merge 3 commits into
Draft
Conversation
`create_labeled_video` returns one result per collected video, in the order `collect_video_paths` resolves them - not one per path passed in. This commit aligns the error log for failed videos now
`collect_video_paths` is not only used for videos: some helpers call it with extensions=".h5" to enumerate analysis outputs. This commits adds and wires a flag to suppress the misleading warning that ".h5" is not a supported video format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Recent testing of the dev branch before 3.1 release undisclosed a few minor bugs or misleading error messages. These are fixed in the current PR:
collect_videos(videos)and not the loggedvideos, which in some cases may have a different order or count).collect_videosemits a warning for unsupported video file formats, but we use the function internally for.h5files as well. This PR introduces a silencing flag to not warn in these cases.analyze_videos_converth5_to_csvto only work for.mp4videos this is now changed to all supported video types.