[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Python Image Loading

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 12
Thread images: 2

File: gdrfkvf.jpg (442KB, 1440x986px) Image search: [Google]
gdrfkvf.jpg
442KB, 1440x986px
I need to load images as fast as possible in Python. What's the best way to do this?

I've tried quite a few things with numpy pre-allocation and multiprocessing, but nothing seems to be fast enough.

>pic semi-related
>>
I learned the hard way you shouldn't try to decompress with Glib and load a PNG using Python.

What you want to do is find a library to do it for you. There is no shame in that.
>>
File: doge_transform.jpg (80KB, 720x720px) Image search: [Google]
doge_transform.jpg
80KB, 720x720px
>>59913489
any suggestions?
>>
>>59914302
imlib2
>>
>>59914302
>>59913489

is sklearn.externals.joblib.parallel any good?
>>
>>59913457
>Jennifer Bitchwrance

She's the reason moot is gone. Fuck off why don't you
>>
>>59914337
>unironically missing moot
>>
>>59914337
1) her and like a dozen other people
2) it was the fault of the faggots that shared all those photos on 4chan. literally only retards and children don't understand the legal predicament hosting those images on 4chan would've put moot in. they could've put them practically anywhere else. moot was just unfortunate because he gave us a lot of latitude, assuming we would use better judgment to avoid him having to face enormous legal pressures.

clearly he was wrong to trust us.
>>
>>59914320
thanks, this looks nice but it looks like the speed up is from keeping images in the cache, I have too many images to keep in memory.
>>
>>59914337
>Bitchwrance
That wasn't even clever. "Whoreance" would've been better, even if obvious.

Also, she could get the dick.
>>
>>59913457
>i need efficiency
>i'm using python
:thinking:
>>
>>59914561
jesus, this. it's retarded attempts at cleverness like "Bitchwrance" that make me wish 4chan *did* go under.
Thread posts: 12
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.