I got this error when I ran your script, have you seen this?
File "retinanet_test.py", line 97, in <module>
retina_net_lab()
File "retinanet_test.py", line 71, in retina_net_lab
mod, params = relay.frontend.from_pytorch(script_module, shape_list)
File "/home/masa/projects/dev/tvm/python/tvm/relay/frontend/pytorch.py", line 3041, in from_pytorch
ret = converter.convert_operators(_get_operator_nodes(graph.nodes()), outputs, ret_name)[0]
File "/home/masa/projects/dev/tvm/python/tvm/relay/frontend/pytorch.py", line 2463, in convert_operators
inputs, _get_input_types(op_node, outputs, default_dtype=self.default_dtype)
File "/home/masa/projects/dev/tvm/python/tvm/relay/frontend/pytorch.py", line 1868, in nms
data, score_threshold=-1.0, id_index=-1, score_index=0
File "/home/masa/projects/dev/tvm/python/tvm/relay/op/vision/nms.py", line 54, in get_valid_counts
_make.get_valid_counts(data, score_threshold, id_index, score_index), 3
File "/home/masa/projects/dev/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 237, in __call__
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
[bt] (3) /mnt/2e797a66-fd2b-44fc-a3ba-24d7d65f2780/projects/dev/tvm/build_llvm8/libtvm.so(TVMFuncCall+0x69) [0x7f9b4e76afb9]
[bt] (2) /mnt/2e797a66-fd2b-44fc-a3ba-24d7d65f2780/projects/dev/tvm/build_llvm8/libtvm.so(std::_Function_handler<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*), tvm::runtime::TypedPackedFunc<tvm::RelayExpr (tvm::RelayExpr, double, int, int)>::AssignTypedLambda<tvm::RelayExpr (*)(tvm::RelayExpr, double, int, int)>(tvm::RelayExpr (*)(tvm::RelayExpr, double, int, int))::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}>::_M_invoke(std::_Any_data const&, tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&)+0x1fb) [0x7f9b4e3b7b8b]
[bt] (1) /mnt/2e797a66-fd2b-44fc-a3ba-24d7d65f2780/projects/dev/tvm/build_llvm8/libtvm.so(tvm::runtime::TVMPODValue_::operator double() const+0x179) [0x7f9b4dc27dc9]
[bt] (0) /mnt/2e797a66-fd2b-44fc-a3ba-24d7d65f2780/projects/dev/tvm/build_llvm8/libtvm.so(+0x78185b) [0x7f9b4dc1e85b]
File "/home/masa/projects/dev/tvm/include/tvm/runtime/packed_func.h", line 372
TVMError:
---------------------------------------------------------------
An internal invariant was violated during the execution of TVM.
Please read TVM's error reporting guidelines.
More details can be found here: https://discuss.tvm.ai/t/error-reporting/7793.
---------------------------------------------------------------
Check failed: type_code_ == kDLFloat (8 vs. 2) : expected float but get Object