Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Jun 17, 2021
1 parent 8e4b5a8 commit 12151b0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/background-filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ static void createOrtSession(struct background_removal_filter *tf) {
sessionOptions.SetExecutionMode(ExecutionMode::ORT_SEQUENTIAL);
}

blog(LOG_INFO, "tf->modelSelection %s", tf->modelSelection);
char* modelFilepath_rawPtr = obs_module_file(tf->modelSelection.c_str());
blog(LOG_INFO, "Model location %s", modelFilepath_rawPtr);

if (modelFilepath_rawPtr == nullptr) {
blog(LOG_ERROR, "Unable to get model filename from plugin.");
Expand Down Expand Up @@ -278,13 +276,10 @@ static void filter_update(void *data, obs_data_t *settings)
const bool newUseGpu = (bool)obs_data_get_bool(settings, "useGPU");
const std::string newModel = obs_data_get_string(settings, "model_select");

blog(LOG_INFO, "newModel %s tf->modelSelection %s", newModel, tf->modelSelection);

if (tf->modelSelection.empty() || tf->modelSelection != newModel || newUseGpu != tf->useGPU)
{
// Re-initialize model if it's not already the selected one
tf->modelSelection = std::string(newModel);
blog(LOG_INFO, "newModel %s tf->modelSelection %s", newModel, tf->modelSelection);
tf->useGPU = newUseGpu;
destroyScalers(tf);
createOrtSession(tf);
Expand Down

0 comments on commit 12151b0

Please sign in to comment.