Closed rgp90 closed 6 years ago
image.scale
uses torch's image library (https://github.com/torch/image) and works only on float tensors. You can convert your images to float using imgs:float()
to make it work.
Thanks a lot. Can I also use cuimage (https://github.com/fartashf/cuimage.torch) ?
That's perfect. :+1:
You might have to change the image.scale functions to cuimage.scale appropriately for that.
Hi I tried to use this function for my image that type of them was torch.CudaTensor , but I faced error in imgs = image.scale(imgs, fineWidth, fineHeight) how can I solve this problem? Your answer is appreciated in advance.