Giter VIP home page Giter VIP logo

Comments (4)

jcupitt avatar jcupitt commented on July 19, 2024 1

Hello, you need to raise the maximum number of open files. I have mine set at 64000, for example.

john@yingna ~ $ ulimit -n
64000

Exactly how to raise the number will need a bit of searching. It seems to vary a lot between linuxes.

from pyvips.

shivamchaubey avatar shivamchaubey commented on July 19, 2024

Thanks @jcupitt

I tried to set it before but the maximum ulimit - n was 4096 and I failed to set it more. I followed this issue https://superuser.com/questions/1200539/cannot-increase-open-file-limit-past-4096-ubuntu and it worked well.
Can you suggest any other pipeline which I should implement to decrease RAM uses? Right now its taking 13.5GB for 80X80 images. I am first making each rows and then merging all the rows vertically.

Also when I save the stitched row images in drive and load it again using pyvips.Image.new_from_file(join(mydir,img)) to stitch it vertically, it takes less memory but takes more time, it's obvious. is there any other method to do it faster?

from pyvips.

jcupitt avatar jcupitt commented on July 19, 2024

You could build as sets of 2x2 blocks. So join the four in the top left as

A B 
C D

Then the next 2x2 block, and so on. Then do another pass and join up the 2x2 blocks in the same way, and repeat until the whole image is joined.

You can drop the concurrency down. Try VIPS_CONCURRENCY=1 before running your program.

from pyvips.

shivamchaubey avatar shivamchaubey commented on July 19, 2024

Thanks for the suggestion. Closing this issue.

from pyvips.

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.