Best way to write a stream of images? #1294
-
Howdy! We are trying to write a stream of images to disk at ~30 FPS - that is, we want our loop of We are using zarr as follows:
We get each image at up to ~50 FPS. Each image is (772, 1032) Our problem is this: when running the program with all of the Speeding up writing to disk would be very helpful. We suspect that some tweaking of how we are saving could be the ticket. Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Have you tried using a regular directory store to see if the ZipStore is potentially limiting your throughput? |
Beta Was this translation helpful? Give feedback.
-
This thread has some relevant discussion: https://forum.image.sc/t/ome-zarr-chunking-questions/66794 |
Beta Was this translation helpful? Give feedback.
-
Sweet! Thanks all. I'll give these ideas a try. |
Beta Was this translation helpful? Give feedback.
-
A quick thank you to you all! Here are the results: The magic trick was from [here](constantinpape/z5#186 (comment) | width=100). You can initialize an empty zarr array of arbitrary size, and it will only allocate memory for initialized chunks. So making the chunk size |
Beta Was this translation helpful? Give feedback.
This thread has some relevant discussion: https://forum.image.sc/t/ome-zarr-chunking-questions/66794