sugarme / gotch

Go binding for Pytorch C++ API (libtorch)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A way to convert/load image from multipart to tensor

sugarme opened this issue · comments

Discussed in #53

Originally posted by isdzulqor July 24, 2021
Is there a way to directly convert an image from multipart file instead of from path to tensor?

I wanna proceed with the image sent from Rest API to be inferenced.

I only found load from the path which is a string format

vision.Load(path)
imageNet.LoadImage(path)

I'm assuming that writing a multipart file to disk first will be so much costly

close for now as no specific requirement.