Skip to content

Commit

Permalink
remove dim assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Data-Iab committed Feb 16, 2023
1 parent 49ea8b5 commit fbd9169
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion alonet/detr/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def wrapper(instance, frames: Union[torch.Tensor, Frame], is_export_onnx=False,
# because torch.onnx.export accepts only torch.Tensor or None
if hasattr(instance, "tracing") and instance.tracing:
assert isinstance(frames, torch.Tensor)
assert frames.shape[1] == 4 # rgb 3 + mask 1
kwargs["is_tracing"] = None
if is_export_onnx is None:
return forward(instance, frames, is_export_onnx=None, **kwargs)
Expand Down

0 comments on commit fbd9169

Please sign in to comment.