Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经获得了torch7 格式的训练有素的CNN 模型。
如何使用已经训练好的模型对单个图像进行推理并返回预测,类似于此?
model = torch.load("/tmp/youmodel.t7")
img = image.load("/tmp/yourimage.png")
res = model:forward(img)