interactive-deep-colorization icon indicating copy to clipboard operation
interactive-deep-colorization copied to clipboard

how to compute the global color histogram

Open cccusername opened this issue 6 years ago • 5 comments

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!

cccusername avatar Dec 17 '18 09:12 cccusername

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 avatar Dec 21 '18 19:12 richzhang

@richzhang The target of the image is colorized with a reference image. So how to color the the background of the image.

cccusername avatar Dec 22 '18 08:12 cccusername

The entire image is colorized based on a reference image, not only the target.

junyanz avatar Dec 22 '18 15:12 junyanz

Would it be possible to get a pytorch version of the global hints network?

mattclifford1 avatar Sep 25 '19 13:09 mattclifford1

It's currently not available. We have a notebook with Caffe backend.

junyanz avatar Sep 25 '19 14:09 junyanz