Skip to content

Commit

Permalink
Merge pull request #1157 from mofanke/main
Browse files Browse the repository at this point in the history
Update darknet.js
  • Loading branch information
joeyklee authored Jan 21, 2022
2 parents 54e4fd4 + 04345bf commit ce2f9f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ImageClassifier/darknet.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ export class Darknet {
}
}

export async function load(version) {
export async function load(modelConfig) {
const { version } = modelConfig
if (version !== "reference" && version !== "tiny") {
throw new Error("Please select a version: darknet-reference or darknet-tiny");
}
Expand Down

0 comments on commit ce2f9f5

Please sign in to comment.