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

Improvement: Fix DeepFilterNetCommandBuilder::setInputFile() limitation #52

Open
omeryusufyagci opened this issue Oct 22, 2024 · 1 comment
Labels
core Media processing component, the core C++ binary. help wanted Extra attention is needed improvement Improve existing functionality

Comments

@omeryusufyagci
Copy link
Owner

omeryusufyagci commented Oct 22, 2024

Due to a limitation of the underlying model, we cannot pass an input file flag (for OS calling).
This causes an issue where the user has to know when to call the setInputFile() method first, which diverges from the builder pattern, and is just not nice.

We need a solution for this without sacrificing the const-correctness and diverging from the pattern.

More details in the DeepFilterCommandBuilder.h file.

@omeryusufyagci omeryusufyagci added help wanted Extra attention is needed improvement Improve existing functionality core Media processing component, the core C++ binary. labels Oct 22, 2024
omeryusufyagci added a commit that referenced this issue Oct 22, 2024
Added a method to pass --compensate-delay flag which is required to
ensure the filtered audio remains in sync with the source media.
Minor refactor for general consistency
Added doxy docs to the header
Discovered a user-side problem; see #52 for details
@omeryusufyagci omeryusufyagci changed the title Improvement: Ensure DeepFilterNetCommandBuilder::setInputFile() can be called flexibly Improvement: Fix DeepFilterNetCommandBuilder::setInputFile() limitation Oct 24, 2024
@nikhiljangra264
Copy link
Contributor

I saw this when making test cases.
Is it solved?
@omeryusufyagci

One way is to store all the arguments first and calling addArgument or addFlag in required sequence in build function.

or adding another function which adds the flag in front of the command instead of pushing back. can be useful in many cases like command name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Media processing component, the core C++ binary. help wanted Extra attention is needed improvement Improve existing functionality
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants