I am unable to save a TensorImage to disk at the moment.
for file in get_image_files(TestingPath):
im = PILImage.create(file)
[preds,targ,asd] = learner.predict(im)
OutName = file.stem+".png"
preds.save(OutName)
But it doesn’t work.
AttributeError Traceback (most recent call last)
<ipython-input-95-cfb5c6ec0c2f> in <module>
16 [preds,targ,asd] = learner.predict(im)
17 OutName = file.stem+".png"
---> 18 preds.save(OutName)
AttributeError: 'TensorImage' object has no attribute 'save'
I take it there’s no save
for the torch_core.TensorImage
class.
So, how would I go about saving this?