Skip to content

Commit

Permalink
fix(api): use diffusion model name without path when looking up hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jun 27, 2023
1 parent 7cbb419 commit 0029943
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/onnx_web/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ def str_params(
inversions: List[Tuple[str, float]] = None,
loras: List[Tuple[str, float]] = None,
) -> str:
model_hash = get_extra_hashes().get(params.model, "unknown")
model_name = path.basename(path.normpath(params.model))
logger.debug("getting model hash for %s", model_name)

model_hash = get_extra_hashes().get(model_name, "unknown")
hash_map = {
model_name: model_hash,
}
Expand Down

0 comments on commit 0029943

Please sign in to comment.