Giter VIP home page Giter VIP logo

Comments (11)

jiupinjia avatar jiupinjia commented on May 29, 2024 1

@hadaev8
The parameter max_divide controls the resolution of each image block. For example, if you set max_divide=5, then the image is first divided into 5x5=25 blocks and then the painting strokes will be generated for each of them separately.

from stylized-neural-painting.

jiupinjia avatar jiupinjia commented on May 29, 2024

Hi @hadaev8, to generate smaller strokes, you can try lightweight renderers, set more strokes (e.g. --max_m_strokes 1000), and more divides (e.g. --max_divide 8) as long as your GPU memory can support them. You can try the following and please let me know if it helps:
python demo_prog.py --img_path ./test_images/apple.jpg --canvas_color 'white' --max_m_strokes 1000 --max_divide 8 --renderer oilpaintbrush --renderer_checkpoint_dir checkpoints_G_oilpaintbrush_light --net_G zou-fusion-net-light

from stylized-neural-painting.

hadaev8 avatar hadaev8 commented on May 29, 2024

@jiupinjia
Have you any numbers?
For example in colab demo image size 512x512 max_m_strokes 500 max_divide 8
For 1920x1080 does it mean I should have these values multiplied with factor 4?

from stylized-neural-painting.

jiupinjia avatar jiupinjia commented on May 29, 2024

@hadaev8, for a 1920x1080 image, you can try --max_m_strokes 2000 and --max_divide 8, and see if your GPU can support them.

from stylized-neural-painting.

hadaev8 avatar hadaev8 commented on May 29, 2024

@jiupinjia
Should you advise why I can't have more than max_divide = 12
Is it intended?

from stylized-neural-painting.

jiupinjia avatar jiupinjia commented on May 29, 2024

You can of course try a max_divide number equal or larger than 12, as long as your GPU memory can support them.

from stylized-neural-painting.

hadaev8 avatar hadaev8 commented on May 29, 2024

@jiupinjia
How model choose stroke size?
What max_divide param mean?

from stylized-neural-painting.

poioef avatar poioef commented on May 29, 2024

请问light是有什么作用呢?

from stylized-neural-painting.

jiupinjia avatar jiupinjia commented on May 29, 2024

Hi @poioef, "light" is for lightweight rendering. If you have limited GPU memory or want a faster rendering speed, you can try those. Please see README for more details. Thanks!

from stylized-neural-painting.

poioef avatar poioef commented on May 29, 2024

Hi @poioef, "light" is for lightweight rendering. If you have limited GPU memory or want a faster rendering speed, you can try those. Please see README for more details. Thanks!

Thanks, but I've already seen README. I want to know if light will make the result worse.I am sorry for trouble you.

from stylized-neural-painting.

jiupinjia avatar jiupinjia commented on May 29, 2024

Hi @poioef, with lightweight rendering, the result will become slightly worse but it will also be much faster. Thanks!

from stylized-neural-painting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.