Homepage
Close
Menu

Site Navigation

  • Home
  • Archive(TODO)
    • By Day
    • By Month
  • About(TODO)
  • Stats
Close
by jeremyphoward on 2019-10-16 (UTC).

I just discovered that PIL takes 8x longer to save a 16 bit single channel PNG than opencv does. Ouch! Anyone else noticed this before, or know why this is? (I'm only using one opencv thread).

— Jeremy Howard (@jeremyphoward) October 16, 2019
miscpython
by jeremyphoward on 2019-10-16 (UTC).

Turns out opencv by default uses RLE compression only, and that's the reason for the difference.

PIL doesn't seem to support that (I couldn't see it it in docs, anyway), so you can't get quite the same mix of speed and size as opencv

h/t @eiopa for putting me on the right track https://t.co/WYq9HXKN66

— Jeremy Howard (@jeremyphoward) October 16, 2019
pythonmisc

Tags

learning tutorial misc nlp rstats gan ethics research dataviz survey python tool security kaggle video thought bayesian humour tensorflow w_code bias dataset pytorch cv tip application javascript forecast swift golang rl jax julia gnn causal surey diffusion
© Copyright Philosophy 2018 Site Template by Colorlib