Comments (4)
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.
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.
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.
Thanks for the suggestion. Closing this issue.
from pyvips.
Related Issues (20)
- Pyvips fetch returns bad image on .svs files HOT 4
- Reading in image a second time breaks on qptiff file HOT 6
- Documentation link to conda package HOT 1
- Create svs file with image pyramid, label and macro in pyvips? HOT 4
- Image merge stitch HOT 2
- `addalpha` has different behaviour compared to C HOT 1
- Error installing pyvips on Mac OS HOT 15
- draw_rect fill error HOT 2
- creating tiles of 16bit multiband (4 band) tiff image leaves black canvas HOT 4
- class "jxlsave" not found HOT 9
- Assertion failed: sp->cinfo.comm.is_decompressor HOT 3
- Help installing pyvips for jupyter HOT 5
- `TIFFFillTile: Read error` when writing a TIFF file on a per-tile basis. HOT 2
- Thumbnail creation taking too long HOT 2
- Unable to save images when certain combinations of them are resize()'d HOT 7
- pyvips stats HOT 1
- How does composite() merge colors? HOT 8
- ICC profiles from file stream in pyvips HOT 5
- Why is error 0x7f? HOT 1
- Can libvips' stack size be modified using pyvips? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyvips.