@daroo its so weird. When I try to load scripted model I get the same error. When I try to register the ops manually with something like:
‘’‘static auto registry = torch::RegisterOperators().op(“torchvision::nms”, &vision::ops::nms);’’’
I get:
‘’‘libc++abi: terminating with uncaught exception of type c10::Error: Tried to register an operator (torchvision::nms(Tensor _0, Tensor _1, float _2) → (Tensor _0)) with the same name and overload name multiple times. Each overload’s schema should only be registered with a single call to def(). Duplicate registration: registered by RegisterOperators. Original registration: registered at /tmp/torchvision-20210615-98076-1ldvglh/vision-0.10.0/torchvision/csrc/ops/nms.cpp:18’’’