yuanming-hu / exposure

Learning infinite-resolution image processing with GAN and RL from unpaired image datasets, using a differentiable photo editing model.
MIT License
767 stars 156 forks source link

Quantitative evaluation using histogram_intersection.py #34

Closed thelittlekid closed 6 years ago

thelittlekid commented 6 years ago

Hi @yuanming-hu , Thanks for sharing your codes. Could you please explain a little bit on how to obtain the quantitative evaluation results using histogram_intersection? I tried to feed two directories as the input arguments and modified line 51 to the following: patch = cv2.resize(new_image, dsize=(80, 80), interpolation=cv2.INTER_AREA), but got an error at line 30 inside get_histograms(images). The error message was: TypeError: iteration over a 0-d array. Thanks!

yuanming-hu commented 6 years ago

Thanks for the question. I will take a look sometime tonight.

yuanming-hu commented 6 years ago

Hi, I think it is fixed now in the latest update. It was caused by python and opencv upgrade.

thelittlekid commented 6 years ago

It works now. Thanks!