interactive-deep-colorization
interactive-deep-colorization copied to clipboard
how to compute the global color histogram
hi, @richzhang i am confused about how to compute the global color histogram. Does it come from Global Hints Network? If my hypothesis is right, the input of Global Hints Network is a reference image, right? I am looking forward to your reply, thanks!
An example for extracting the global color histogram is here in function get_global_histogram
. It called a network here. The network resizes the image, computes the color bin that each pixel belongs to using this function, and then averages all the pixels in the image to get a distribution.
@richzhang The target of the image is colorized with a reference image. So how to color the the background of the image.
The entire image is colorized based on a reference image, not only the target.
Would it be possible to get a pytorch version of the global hints network?
It's currently not available. We have a notebook with Caffe backend.