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

ENH/API Add bark context params #106

Merged
merged 1 commit into from
Sep 9, 2023
Merged

ENH/API Add bark context params #106

merged 1 commit into from
Sep 9, 2023

Conversation

PABannier
Copy link
Owner

No description provided.

@PABannier PABannier merged commit dbe6aac into main Sep 9, 2023
1 of 10 checks passed
@PABannier PABannier deleted the bark_ctx_with_params branch September 9, 2023 19:11
int max_coarse_history = ctx->max_coarse_history;
int sliding_window_size = ctx->sliding_window_size;
float temp = ctx->temp;

float semantic_to_coarse_ratio = COARSE_RATE_HZ / SEMANTIC_RATE_HZ * N_COARSE_CODEBOOKS;
int max_semantic_history = floorf(max_coarse_history / semantic_to_coarse_ratio);
Copy link
Collaborator

Choose a reason for hiding this comment

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

doesnt the converstion to int already floor it? (seems to be always positive)

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.

None yet

2 participants