junyanz / interactive-deep-colorization

Deep learning software for colorizing black and white images with a few clicks.
https://richzhang.github.io/ideepcolor/
MIT License
2.69k stars 447 forks source link

Size of palette #45

Closed Arroosh closed 6 years ago

Arroosh commented 6 years ago

Hello! Can you please tell me that can we increase the size of palette or suggested colors using this code? If so then which command lines will be require to make changes in the code?

Thanks in advance

Regards Aroosh Fatima

junyanz commented 6 years ago

It's currently hard-coded in the code. You can change the size by modifying this line.

Arroosh commented 6 years ago

Thanks for your response. In case of user edit, I want to add R,G,B color values of my own choice on specific position. Is this possible?? If so, Please highlight those lines (R, G, B values as well as x,y position) as well where i need to make changes.

Thanks in advance

Regards Aroosh Fatima

junyanz commented 6 years ago

It's possible. But you need to hack the code. You can either modify the jupyter notebook. You need to set the input_ab and mask manually in Line 7. For the UI code, you need to modify this line.

kz81 commented 6 years ago

Palette can be adjusted easily, but how do I change the brush size? I can do a palette with tiny colors, but the brush (tooltip) will remain standard size. A fine tooltip should improve results significantly for example in group pictures with rather small faces. Even better would be if there were several tooltip sizes to choose from within the program while running.

junyanz commented 6 years ago

I think you can adjust the brush size with your "mouse scroll wheel".

kz81 commented 6 years ago

Genius! :) Thank you!