lutzroeder / netron

Visualizer for neural network, deep learning and machine learning models
https://netron.app
MIT License
27.45k stars 2.73k forks source link

TorchScript server #990

Open lutzroeder opened 1 year ago

lutzroeder commented 1 year ago
import torch
import torchvision
import torch.utils.tensorboard
model = torchvision.models.detection.fasterrcnn_resnet50_fpn()
script = torch.jit.script(model)
script.save('fasterrcnn_resnet50_fpn.pt')
with torch.utils.tensorboard.SummaryWriter('log') as writer:
    writer.add_graph(script, ())

fasterrcnn_resnet50_fpn.pt.zip

HLearning commented 1 year ago

netron not open fasterrcnn_resnet50_fpn.pt Python Error AssertionError: targets should not be none when in training mode