Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shijianjian committed Sep 15, 2024
1 parent e486f29 commit aa707a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kornia/models/edge_detector/dexined.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ def to_onnx(
image_size: Optional[int] = 352,
) -> Tuple[str, EdgeDetector]:
edge_detector = DexiNedBuilder.build(pretrained, image_size)
model_name = "DexiNed"
if onnx_name is None:
_model_name = model_name
onnx_name = f"Kornia-RTDETR-{_model_name}-{image_size}.onnx"
onnx_name = f"Kornia-DexiNed-{image_size}.onnx"

if image_size is None:
val_image = rand(1, 3, 352, 352)
Expand Down

0 comments on commit aa707a5

Please sign in to comment.