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

fix batch bug #504

Merged
merged 5 commits into from
Dec 5, 2024
Merged

fix batch bug #504

merged 5 commits into from
Dec 5, 2024

Conversation

BeachWang
Copy link
Collaborator

@BeachWang BeachWang commented Dec 2, 2024

  1. 修改Turbo和batch操作的判断逻辑
  • Turbo加速逻辑:对batch算子不起作用,非batch算子时turbo等于True不会打batch,速度快,等于false时打成batch size等于1的batch sample,速度慢。
  • 原先逻辑turbo等于false时,非batch算子的batch size可能不等于1,导致sample丢失。
  1. 将filter和map对参数相同的操作挪到一个函数里,以免出现一个地方修改另外一个地方遗漏的情况。目前turbo逻辑filter和map保持一致了。
  2. 限定pyav版本。

Copy link
Collaborator

@HYLcool HYLcool left a comment

Choose a reason for hiding this comment

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

LGTM

@BeachWang BeachWang merged commit 5a4b1a1 into main Dec 5, 2024
3 checks passed
@BeachWang BeachWang deleted the debug/fix_batch_bug branch December 5, 2024 11:49
BeachWang added a commit that referenced this pull request Dec 5, 2024
* init python_lambda_mapper

* set default arg

* fix init

* support batched & add docs

* fix docs

* Quick fix for some minor problems (#503)

* * remove str conversion for fps para of add_stream func
+ add requires from librosa to avoid lazy_loader failure during multiprocessing

* * remove str conversion for fps para of add_stream func
+ add requires from librosa to avoid lazy_loader failure during multiprocessing

* * install cmake before

* * install cmake before

* * install cmake before

* * update unit test tags

* * update unit test tags

* * update unit test tags

* * update unit test tags

* * try to remove samplerate dep

* * skip audio duration and audio nmf snr filters

* * skip video_tagging_from_frames_filter

* * skip video_tagging_from_audios_filter

* * skip video_motion_score_raft_filter

* fix batch bug (#504)

* fix batch bug

* fix filter batch

* not rank for filter

* limit pyav version

---------

Co-authored-by: Yilun Huang <[email protected]>
Co-authored-by: BeachWang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants