Settings

Theme

I accidentally built a meme search engine

harper.blog

319 points by EamonLeonard 2 years ago · 55 comments

Reader

bo0tzz 2 years ago

Last year we added CLIP-based image search to https://immich.app/ and even though I have a pretty good understanding of how it works, it still blows my mind damn near every day. It's the closest thing to magic I've ever seen.

  • dsvf 2 years ago

    Happy immich user here! I once took a cute photo of our baby chewing on a whisk, and actually finding the correct photo in an unsorted, untagged huge pile of photos by simply searching for "whisk" was a mindblow experience! It is an amazingly powerful tool!

    • pwillia7 2 years ago

      How does it compare to Google Photo search? I search things like 'whisk' with success regularly... though to be fair not as random as whisk, but things like "steering wheel"

  • apricot13 2 years ago

    Just needs OCR for the perfect meme searching solution!

    • bo0tzz 2 years ago

      OCR will be there at some point, but it already does a surprisingly good job without!

      • itake 2 years ago

        I'd also consider adding searching via QR codes. you could search by the content in the QR code (like the url) or if its a URL, search the content on the page of the QR code.

        • Eisenstein 2 years ago

          Why? I can't think of a use for this.

          • itake 2 years ago

            people that have a lot of photos with QR codes would want it :).

            You could search your images for qr codes that go to linkedin, ig, or fb pages. or find the qr code wifi passwords.

            if you just have a screenshot of a QR code (like you zoomed in and screenshot the ticket's QR code, no other text), then finding the qr code by the event name could be useful.

            Thailand requires qr codes that linked to the nutritional information registered online. this could be useful to help you search products that just show the back of the label and not the front of the product.

  • fxtentacle 2 years ago

    Wow I have been looking for something like that for a long time. Thanks for telling me about immich :)

  • atif089 2 years ago

    Thanks for sharing about immich. I have a task that has been on my to-do list for several years now.

    Amongst all the WhatsApp media on my phone I would like to get a list of all the videos and photos with my family in it and then delete the rest.

    Is something like this possible with immich?

    • atif089 2 years ago

      For anyone in the same boat as my self, I later found out that this is actually very easy to achieve (thanks to ChatGPT). Theoretically, this is how it is done

      1. Encode faces, there is a library called face_recognition, that can grab faces from pictures and encode them 2. Group the faces data using `pairwise_distances(encodings, metric='euclidean')`, you only need sklearn library for this

  • wruza 2 years ago

    The “Demo portal” link breaks back button, btw.

rovr138 2 years ago

You might be interested in this, https://github.com/mazzzystar/Queryable, https://queryable.app/

I run it on my iPhone.

Native app. Doesn't require a network connection (great for privacy).

> Queryable is a Core ML model that runs locally on your device. Leveraging OpenAI CLIP's model encoding technology to connect images and text, you can search your iPhone photo album using any natural language input. Most importantly, it is completely offline, so your album privacy will not be revealed to anyone. And, it is open-source: GitHub

  • mazzystar 2 years ago

    Thank you for your introduction!

    After creating Queryable, I also developed an app called MemeSearch, which searches for memes on Reddit (https://apps.apple.com/us/app/memesearch-reddit-meme-finder/...). Although it's completely free, it hasn't been downloaded by many users. I thought nobody wanted it, so I'm glad to see there are still some people who share a similar taste.

    • ggrelet 2 years ago

      Thanks for Queryable, I use it quite often. As for Reddit meme finder, how do you deal with reddits sudden price increase for its api?

      Also, I think you should use another icon from this app because it looks like a goofy side project. It probably is but people would probably not download iPhone apps if the icon doesn’t look professional. (My two cents)

      • mazzystar 2 years ago

        I made this app when the Reddit API was free : )

        As for the icon, I drew it myself. I found it funny.

    • rovr138 2 years ago

      Definitely! Great app!

      Hadn't seen MemeSearch, downloading it now.

      • mazzystar 2 years ago

        Thank you. It's been over a year since I last maintained it, and I've noticed that the model behaves abnormally on iOS 17 (when searching for 'content', every query results in the same image). I have already fixed this issue in version 1.0.4 and am currently waiting for the review to be approved.

yreg 2 years ago

Last year there was also a very funny project of meme search engine leveraging an iPhone farm:

https://findthatmeme.com/blog/2023/01/08/image-stacks-and-ip...

https://news.ycombinator.com/item?id=34315782

thesz 2 years ago

It should be named "I accidentally a meme search engine" [1].

[1] https://www.reddit.com/r/AskReddit/comments/jooo5/reddit_ori...

black_puppydog 2 years ago

I love the use of "to Google something" to mean "take something tu t works pretty well and then make it so bad nobody will use/notice it"

robotnikman 2 years ago

Gives me an idea for a meme search service I can use locally to search through all the images on my computer to find a specific meme (I tend to know I downloaded a funny one and then when I want to share it with someone I can never find it)

ianbicking 2 years ago

Huh, are the image vector embeddings implicitly doing OCR as well? Because it seems like the meme search is pulling from the text as well as images, though it's not entirely clear.

  • bo0tzz 2 years ago

    CLIP does not have explicit OCR support, but it does somewhat coincidentally have a slight understanding of text. This is explained by training captions containing (some of) the text that is in the image.

speedgoose 2 years ago

It's very cool to see how it's now possible to easily replicate old Google Photos features in 10 hours using open-source tools on a laptop.

diptanu 2 years ago

These hacks/side projects are amazing! I feel we will see a lot of creativity as tools to build data intensive AI applications become easier.

We built and open sourced Indexify https://github.com/tensorlakeai/indexify to make it easy to build resilient pipelines to combine data with many different models and transformations to build applications that relies on embedding or any other metadata extracted by models from Videos, Photos and any documents!

I didn’t know about SigClip, the author mentioned on the blog, need to add this to our library :) I also found it incredible that he generated the crawler with Claude! This is the type of boilerplate I hope we don’t have to write in the future

om8 2 years ago

CLIP is a very interesting technology.

On my previous job ML department created internal tool, where you could search through city panoramas (like google street view) using text.

It could find you in a second all road pits, overfilled dumpsters and other ugly (and beautiful) things you wanted.

systemz 2 years ago

Interesting, I knew about something similar but more focused on server side: https://github.com/simon987/sist2

lancehasson 2 years ago

This is awesome! We made similar functionality (plus more) available through an API. If anyone is interested to try it out and share feedback, please message me and I’ll hook you up.

justinator 2 years ago

Hey @harper, you ever write about your vision quests?

rmdes 2 years ago

I want to do this but for 30GB of PDFs

  • mft_ 2 years ago

    I steered a friend towards Paperless (and away from an LLM solution) as a way of searching/accessing GBs of architectural PDFs recently - so far, it’s apparently working well for them.

    https://github.com/paperless-ngx/paperless-ngx

    • rmdes 2 years ago

      I have been playing with it for a while but I miss a conversational interface where I can interrogate the PDF's and summarize them or let's say, find all the main events per year in a corpus of text and build a time-line of said events (context legal case with tons of text data to parse)

  • sagar-co 2 years ago

    Hi @rmdes, Sagar here from Joyspace AI. I recently made a Show HN post[0] around documents search engine.

    We can do this very easily for you. We can provide Search output with context that you can further feed to an LLM for processing to extract events. Let me know if you are interested.

    You can get in touch with me at sagar at joyspace dot ai.

    [0] https://news.ycombinator.com/item?id=39980902

  • harper 2 years ago

    this shouldn't be too hard

ritavdas 2 years ago

Did you host any version of this on the cloud for the general public to access?

  • araes 2 years ago

    We're almost getting back to the .com era of the 2000's with some of these "public cloud" company demos. Enough frenzy, that if your app really starts grinding compute cycles you can quickly DDOS yourself with server costs. Even at $0.001/request [1], if you get 10,000 HN readers who all make 100 requests on average, you suddenly get $1000 server bill from somebody. Those used to be on /. all the time circa 2000.

    If few convert, and most just tell their friends to try your cool demo, you can suddenly have 100,000 reddit users making 200+ requests on average every day cause your free demo's so cool. And suddenly you're mostly trying to figure out how to scrounge up server costs to cover the free parts.

    Frankly, seems like the entire industry's probably going to have a lot of the same optimizations pretty soon. "How do we stop delivering such enormous JPGs with every Amazon/eBay click?" and similar.

    [1] Slighly old article, so I lower the $/request on compute a bit from $0.0014 to $0.001. https://a16z.com/navigating-the-high-cost-of-ai-compute/

  • harper 2 years ago

    Nope. I would love to make something public using this tech. It is so magical.

brabel 2 years ago

> I imagine that we will see this tech rolled into all the various photo apps shortly.

Yeah, Google's and Apple's Photos both can search for pictures given a description of what you're looking for. In my experience both work very well (e.g. search for "cars" in your pics, and it'll find all your cars over the years if you, like me, take pictures with your cars a lot :) ).

pksebben 2 years ago

I apologize in advance if you're sick of hearing this, but...

I clicked through to your sites 'cause I dig your angle and I saw the bit about the kindle. Ouch, dude. Money sure ain't everything but holy crap.

You have my condolences. Keep building awesome shit, please.

edit: followup question - do you still have it?

  • harper 2 years ago

    I will never part with my expensive kindle. Lolol. I read so many good books on it.

lanej 2 years ago

Oh hey Eamo

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection