Support variable length input
parent
ebe3e885c0
commit
7efee821bc
|
@ -140,6 +140,8 @@ def export_single_model(model,
|
|||
infer_shape = [3, 488, 488]
|
||||
if arch_config["algorithm"] == "TableMaster":
|
||||
infer_shape = [3, 480, 480]
|
||||
if arch_config["algorithm"] == "SLANet":
|
||||
infer_shape = [3, -1, -1]
|
||||
model = to_static(
|
||||
model,
|
||||
input_spec=[
|
||||
|
|
Loading…
Reference in New Issue