big_vision icon indicating copy to clipboard operation
big_vision copied to clipboard

Colorization uvim model not working

Open muhammad-ahmed-ghani opened this issue 3 years ago • 5 comments

Hi @andresusanopinto I hope you are well. I tried using the colorization model on my images but out of 4 it colorized only 1 image and the result is also not good at all. Can you please tell me what I am missing ? image

muhammad-ahmed-ghani avatar Oct 18 '22 07:10 muhammad-ahmed-ghani

Hi @muhammad-ahmed-ghani,

To get colorful samples please set the sampling temperature to 1.0 in the last cell of the colab: temperature = jnp.array(1.0). After fixing the temperature also consider running inference multiple times and then selecting the best colorization attempt. The near zero sampling temperature is not good default for the colorization task, we will likely update the colab soon.

Let us know whether it worked for you.

akolesnikoff avatar Oct 18 '22 08:10 akolesnikoff

I changed it but still it adds a slight blueish tint to the images. image

muhammad-ahmed-ghani avatar Oct 18 '22 08:10 muhammad-ahmed-ghani

That is a bit puzzling, as I am able to get reasonable colorization. If you share a reproduction I may have a look at some point.

akolesnikoff avatar Oct 18 '22 11:10 akolesnikoff

That is a bit puzzling, as I am able to get reasonable colorization. If you share a reproduction I may have a look at some point.

You can check the code here. I just changed the images directories.

https://colab.research.google.com/drive/1E5R_pla2cPkwVKxu9cCgvCt9PtAA-PCq?usp=sharing

muhammad-ahmed-ghani avatar Oct 18 '22 13:10 muhammad-ahmed-ghani

That is a bit puzzling, as I am able to get reasonable colorization. If you share a reproduction I may have a look at some point.

You can check the code here. I just changed the images directories.

https://colab.research.google.com/drive/1E5R_pla2cPkwVKxu9cCgvCt9PtAA-PCq?usp=sharing

Hi @akolesnikoff, have you find anything on it ?

muhammad-ahmed-ghani avatar Oct 20 '22 05:10 muhammad-ahmed-ghani