r/ProgrammerHumor • • Nov 26 '22

Other chaotic magic

Post image
76.7k Upvotes

767 comments sorted by

View all comments

Show parent comments

155

u/CiroGarcia Nov 27 '22 edited Sep 17 '23

[redacted by user] this message was mass deleted/edited with redact.dev

32

u/jaspersgroove Nov 27 '22

For real, I use this app called Seek when I go camping to identify plants/animals/etc. it’s a 50/50 shot of whether it recognizes what I’m taking pictures of. If you can get a clear silhouette of whatever it is on a uniform background of a contrasting color it seems to work the best. Rest of the time you can take 10 pictures of the animal from different angles and if it recognizes one of those it’ll be the blurry, shitty pic that you couldn’t even recognize.

→ More replies (1)

43

u/erannare Nov 27 '22

Potentially! Although some approaches will still do quite well on small objects, especially if you patch the image. Just takes a bit longer.

Google Lens is a good example if you wanna see what's easily available to consumers.

49

u/[deleted] Nov 27 '22

I used to work on Google Lens. I have some terrible news for you - we gave up on the "out of the five objects in this scene, which do I think the user meant to search for" problem in order to answer the "out of the five objects in this scene, which one do I have the best chance of turning into a shopping journey" question.

I'm being a little facetious, but in actuality, the disambiguation problem was never solved. We relied on (and Lens still relies on) the user to answer that question. Literally there was more computing power devoted to answering "which AI should I ask about this picture" than any of those AIs took, which meant we would often ask all of them just in case they came up with any good ads.

8

u/erannare Nov 27 '22

Very interesting! Although I'm guessing if the user selects a very particular portion of the image it's bound to predict something there. I've used it for ID-ing bugs, definitely no shopping there haha

8

u/AlwaysHopelesslyLost Nov 27 '22

I think that is exactly what they were saying. Having it identify everything in the image is difficult. Having it identify one specific area that the user chose is easy

2

u/doublebass120 Nov 27 '22

IDing bugs

So basically a Pokédex. Nice.

5

u/[deleted] Nov 27 '22

This does not surprise me one bit

→ More replies (3)
→ More replies (1)

0

u/[deleted] Nov 27 '22

[deleted]

11

u/erannare Nov 27 '22

This is an example of an object detection model and you wouldn't need to do that. You can classify images as either having birds or not, and leave it at that. If you want the bird to be the subject of the image, then a depth estimation model can be used.

Check out Google Lens, it's the best example I can think of.

0

u/[deleted] Nov 27 '22

[deleted]

2

u/erannare Nov 27 '22

There are even zero-shot models! Meaning they can detect classes that don't exist in their training dataset.

→ More replies (1)

3

u/GladCucumber2855 Nov 27 '22

Seek is a great plant and animal identification app, and it still needs me to move the camera every which way to get the perfect angle where it can accurately identify something lol

11

u/TracerBulletX Nov 27 '22

That's not true.. There are plenty of models that can tell if a bird is anywhere in an image. I mean literally just searched bird on my phone and got 200 pictures with birds taking up a small portion of the frame from my photos.

13

u/CiroGarcia Nov 27 '22 edited Sep 17 '23

[redacted by user] this message was mass deleted/edited with redact.dev

4

u/RagnarokAeon Nov 27 '22

This is not even mentioning inaccuracies that could be caused birds obscured by objects (such as nests or trees); the fact that birds come in all sorts of shapes and sizes (Penguins, Emus, Kiwi, Vultures, Eagles, and Pigeons have different shapes and sizes); and 'fake' birds like costumes, toys, and models.

I can't wait for the time that people are so reliant on apps and AI that take picture of a bird, and are like, "Well, my app says it's not a bird, so it must not be."

3

u/erannare Nov 27 '22

That actually isn't difficult, as u/TracerBulletX mentioned. There are depth estimation models that would make it very easy to separate background from foreground. I think you might not be up-to-date on some of the methods out there, but they are fascinating.

If you want to get your hands a bit dirty, you can check out HuggingFace and either explore the user-friendly "Spaces" or load their models into python and play with them directly.

3

u/gdmzhlzhiv Nov 27 '22

I had a CAPTCHA the other day which said to select all pictures of a banana in a basket.

None of the pics contained exactly one banana, so I ended up fetching about 5 pages of candidate pics until it finally switched topics.

I hope the machine learned a valuable lesson about plurals that day.

-3

u/TracerBulletX Nov 27 '22

That's not hard either.

7

u/mastersj101 Nov 27 '22 edited Nov 28 '22

searching the keyword of "bird" in google is different tho right? google already has those images with hashtags of birds so your google search just points to images with those keywords. taking a picture of a bird and trying to find an algorithm that can identify it as a bird is different.

EDIT: was not aware of google photos being advanced. disregard my statement

5

u/erannare Nov 27 '22

I think u/TracerBulletX meant in Google Photos on their phone, where images are not labelled. If you use Google Photos it will process your images and allow you to search through them based on keywords without you telling it what's in the photo.

2

u/mastersj101 Nov 28 '22

woah never knew it could do that. pretty awesome stuff. How does google know the bird in the photo is the main identifier then? what if there was a bird in a background of the taj mahal. would google allow you to search for both keywords?

4

u/TracerBulletX Nov 27 '22

Both apple and Google tag your photos on your phone by content with very high accuracy. Also I'm a machine learning engineer and the state of the art models are pretty great now, you could get a model that could tell you if a picture is of a bird with high accuracy in half an hour by following an intro pytorch tutorial at this point. I'm not trying to be rude, it's just not that hard now.

→ More replies (1)
→ More replies (1)

2

u/EVOSexyBeast Nov 27 '22

You divide the image up into smaller parts and search for a bird in each of those parts.

→ More replies (5)
→ More replies (5)