Skip to content

Commit

Permalink
Default threshold of 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hauck-jvsh committed Feb 20, 2025
1 parent d9020ca commit eec717b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iped-app/resources/config/conf/RemoteImageClassifier.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ url = http://192.168.160.208:8000/zip
batch_size = 50

# threshold used to decide if an image is labeled in one category
categorization_threshold=0.99
categorization_threshold=0.50
3 changes: 1 addition & 2 deletions iped-app/resources/scripts/tasks/AIRefineCategoryTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
/* Name of processing task
*/

var categorizationThreshold=0.5;
var RemoteImageClassifierConfig=Java.type("iped.engine.config.RemoteImageClassifierConfig")
var Arrays=Java.type("java.util.Arrays")

Expand All @@ -21,7 +20,7 @@ function getConfigurables() {
}

function init(configurationManager) {
config=configurationManager.findObject(RemoteImageClassifierConfig.class)
var config=configurationManager.findObject(RemoteImageClassifierConfig.class)
categorizationThreshold=config.getCategorizationThreshold()
}

Expand Down

0 comments on commit eec717b

Please sign in to comment.