Skip to content
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

Removing Open CV dependencies #1679

Closed
wants to merge 4 commits into from
Closed

Conversation

ishaanagw
Copy link
Contributor

No description provided.

@ishaanagw
Copy link
Contributor Author

Partly fixes - #1477

Copy link
Contributor

@guarin guarin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I believe the videos are not correctly saved, left some comments :)

for frame in frames:
out.write(frame)
out.release()
out = torchvision.io.write_video(path, self.frames_over_videos, frames)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
out = torchvision.io.write_video(path, self.frames_over_videos, frames)
out = torchvision.io.write_video(filename=path, video_array=frames, fps=1)

self.frames_over_videos is a list of videos and we want to save every video individually.

for frame in self.frames:
out.write(frame)
out.release()
out = torchvision.io.write_video(path, self.frames, n_frames_per_video)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
out = torchvision.io.write_video(path, self.frames, n_frames_per_video)
out = torchvision.io.write_video(filename=path, video_array=self.frames, fps=1)

@vectorvp
Copy link
Contributor

@guarin, is there a way I can help with completing this PR?

@guarin
Copy link
Contributor

guarin commented Nov 22, 2024

Hi, yes that would be very helpful. You can merge the changes from this branch into your fork and make a new PR if that is ok?

@vectorvp
Copy link
Contributor

@guarin, sure. Are you online during weekends?

@guarin
Copy link
Contributor

guarin commented Nov 22, 2024

I'm usually only available during weekdays

@guarin
Copy link
Contributor

guarin commented Dec 3, 2024

This has been fixed in #1743

@guarin guarin closed this Dec 3, 2024
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.

4 participants