pfnet / PaintsChainer

line drawing colorization using chainer
https://paintschainer.preferred.tech/
MIT License
3.77k stars 557 forks source link

Lossless Quality? #77

Closed SiggEye closed 7 years ago

SiggEye commented 7 years ago

Now that I've got the program running locally (thanks to the contributors), I was wondering if there is an easy way to edit the code in img2imgDataset.py so that I can save the colourised picture while it's the same resolution and aspect ratio as the one I originally imported. I know it requires a lot of hardware power, and if it requires too much, is it at least possible to make the exported (coloured) picture very close to original resolution? Thanks again!

taizan commented 7 years ago

yes you can change the param of size_s when you calling ImageAndRefDataset.get_example(self, i, minimize=False, blur=0, s_size=128) at cgi_exe.py

SiggEye commented 7 years ago

I got it to work by changing the one s_size in img2imgDataset.py to 512 instead of 128. The resolution of the colorised picture is approximately 85% of the original picture that was imported, which is really good. Thanks!

abbychau commented 7 years ago

simply input s_size in the colorize function and it will propagate