luanfujun / deep-painterly-harmonization

Code and data for paper "Deep Painterly Harmonization": https://arxiv.org/abs/1804.03189
6.08k stars 628 forks source link

Nice code #19

Open Naruto-Sasuke opened 6 years ago

Naruto-Sasuke commented 6 years ago

I am wondering how you implement your code 'cuda_utils.cu'. I am suffering from how to write efficient cuda code to make my custom operation work. Could you give me some advices ? BTW, I will check your code and may make some PRs to refine your code.

luanfujun commented 6 years ago

Thanks!

Maybe you can start by writing some small util functions based on NVIDIA tutorials. Say this one:

https://devblogs.nvidia.com/even-easier-introduction-cuda/