Skip to content

Commit

Permalink
Merge pull request #11 from ibelem/safety-checker-int32-reducesum
Browse files Browse the repository at this point in the history
Update Safety Checker model for reduceSum with int32 input
  • Loading branch information
fdwr authored Aug 1, 2024
2 parents c52e0c4 + 10725ca commit 0126183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/sd-turbo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ async function load_models(models) {
modelUrl = `${config.model}/${name}/model.onnx`;
} else if (name == "safety_checker") {
modelNameInLog = "Safety Checker";
modelUrl = `${config.model}/${name}/model.onnx`;
modelUrl = `${config.model}/${name}/safety_checker_int32_reduceSum.onnx`;
}
log(`[Load] Loading model ${modelNameInLog} · ${model.size}`);
let modelBuffer = await getModelOPFS(`sd_turbo_${name}`, modelUrl, false);
Expand Down

0 comments on commit 0126183

Please sign in to comment.