Closed Pantsworth closed 8 years ago
The image.warp function actually takes a seventh argument called 'pad_val': torch/image/doc/paramtransform.md
Maybe you are using an outdated torch installation?
worked after updating Torch to latest version. Thanks!
Greetings,
Thanks for all your work on this project! I'm very excited to be getting it up and running.
Currently, I'm running into an error whilst trying to process images, and unfortunately I've been unable to find any help docs that pointed me to a fix.
Running Ubuntu 14.04, CUDA 7.5, latest pull of artistic-videos, all on AWS g2.2xlarge.
It looks like the inputs to the image.warp function are incorrect – not sure why this would be. A misconfigured lib someplace?
I generated this error with the following line:
th artistic_video.lua -content_pattern example/marple8_%02d.ppm -style_image example/seated-nude.jpg -num_images 0 -gpu 0
Output:
Any help is greatly appreciated.
EDIT: Success after editing line 293: Original:
result = image.warp(img, flow, 'bilinear', true, 'pad', -1)
Changed:
result = image.warp(img, flow, 'bilinear', true, 'clamp')