jiupinjia / stylized-neural-painting

Official Pytorch implementation of the preprint paper "Stylized Neural Painting", in CVPR 2021.
https://jiupinjia.github.io/neuralpainter/
Creative Commons Zero v1.0 Universal
1.56k stars 262 forks source link

About input photo pixel? #38

Open boboqazqaz opened 3 years ago

boboqazqaz commented 3 years ago

Can I use photo pixel like 1280 720? When I use --canvas_size 720 The photo size will be forced to be 720 720. How to change the output photo size to 1280*720?

BlexFx commented 3 years ago

I also ran into this why only width = height

jiupinjia commented 2 years ago

Hi @BlexFx and @boboqazqaz, sorry for the late reply. You can try --keep_aspect_ratio if you want your aspect ratio unchanged. Please let me know if you have any further questions.

BlexFx commented 2 years ago

Hi @jiupinjia Thank you! No questions yet I will share my generations soon /ᐠ。ꞈ。ᐟ\

jiupinjia commented 2 years ago

@BlexFx Cheers!

tyrionhuu commented 2 years ago

I used --keep_aspectratio and the canvas was still square. What had I done wrong?(・・; python3 demo_prog.py --img_path ./test_images/apple.jpg --canvas_color 'white' --keep_aspect_ratio --max_m_strokes 500 --max_divide 5 --renderer oilpaintbrush --renderer_checkpoint_dir checkpoints_G_oilpaintbrush --net_G zou-fusion-net (I change the size of apple.jpg. )