You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to export the official TorchVision's MobileV3 SSD-lite. However I get the above error. The function ssdlite320_mobilenet_v3_large returns a SSD instance, which contains
So, is it the images type which is the culprit? The problem is that it calls Torchvision's transforms and backbone, which also receives this List[Tensor]. Since it's the official Torchvision code, I don't have control over that. So how to proceed?
how to reproduce | 复现步骤 | 再現方法
import torch
from torchvision.models.detection import (
SSDLite320_MobileNet_V3_Large_Weights,
ssdlite320_mobilenet_v3_large,
)
import pnnx
model = ssdlite320_mobilenet_v3_large(
weights=SSDLite320_MobileNet_V3_Large_Weights.DEFAULT
)
x = torch.rand(1, 3, 320, 320)
model_scripted = torch.jit.script(model, x)
pnnx.export(model_scripted, "ssdlite320_mobilenet_v3_large.pt", x)
more | 其他 | その他
The text was updated successfully, but these errors were encountered:
error log | 日志或报错信息 | ログ
context | 编译/运行环境 | バックグラウンド
Hi,
I'm trying to export the official TorchVision's MobileV3 SSD-lite. However I get the above error. The function ssdlite320_mobilenet_v3_large returns a SSD instance, which contains
So, is it the
images
type which is the culprit? The problem is that it calls Torchvision's transforms and backbone, which also receives thisList[Tensor]
. Since it's the official Torchvision code, I don't have control over that. So how to proceed?how to reproduce | 复现步骤 | 再現方法
more | 其他 | その他
The text was updated successfully, but these errors were encountered: