This is a demonstration of the abilities of OpenAI's CLIP neural network. The tool will download a YouTube video, extract frames at regular intervals and precompute the feature vectors of each frame using CLIP. You can then use natural language search queries to find a particular frame of the video. The results are really amazing in my opinion... If you want to experiment with it yourself, I prepared a Colab notebook…
Can it work for more advance keywords like say, "traffic violation" where it spots a car jumping red light or pedestrian not using a crosswalk, etc? It could be very useful to help with law enforcement.
Show HN: Search inside YouTube videos using natural language queries
21–30 of 45 posts
Re: Show HN: Search inside YouTube videos using natural language queries
#22This is a demonstration of the abilities of OpenAI's CLIP neural network. The tool will download a YouTube video, extract frames at regular intervals and precompute the feature vectors of each frame using CLIP. You can then use natural language search queries to find a particular frame of the video. The results are really amazing in my opinion... If you want to experiment with it yourself, I prepared a Colab notebook…
This is amazing. I'm going to get this running on my Dropbox. Curious what it gets out of scanned documents as well.
I tried it on the 2M photos from the Unsplash dataset: https://github.com/haltakov/natural-language-image-search
Re: Show HN: Search inside YouTube videos using natural language queries
#23This is a demonstration of the abilities of OpenAI's CLIP neural network. The tool will download a YouTube video, extract frames at regular intervals and precompute the feature vectors of each frame using CLIP. You can then use natural language search queries to find a particular frame of the video. The results are really amazing in my opinion... If you want to experiment with it yourself, I prepared a Colab notebook…
> The tool will download a YouTube video, extract frames at regular intervals That should be able to scale well :-)
So, the present tool does not scale because the videos are part of the user query, but a company with an easy access to the videos and the computational power to pre-encode the frames as features could create a search engine based on CLIP.
[1] https://github.com/haltakov/natural-language-image-search
Re: Show HN: Search inside YouTube videos using natural language queries
#24This is a demonstration of the abilities of OpenAI's CLIP neural network. The tool will download a YouTube video, extract frames at regular intervals and precompute the feature vectors of each frame using CLIP. You can then use natural language search queries to find a particular frame of the video. The results are really amazing in my opinion... If you want to experiment with it yourself, I prepared a Colab notebook…
Great demo. Wondering whether it would be more efficient if extracting frames where the content has changed (e.g. over a threshold and/or all I-frames)? Also, could this be used to identify event type in videos? I'd love to run my 25 years of home videos through this an have it annotate: "Christmas, birthday, park, camping...".
Once you compute the features, the search is very efficient! I tried it for searching in the 2M photos dataset from Unsplash and it takes like 2-3 seconds: https://github.com/haltakov/natural-language-image-search
I plan to run my personal photos through it :)
Re: Show HN: Search inside YouTube videos using natural language queries
#25Earlier quoted context omitted.
> The tool will download a YouTube video, extract frames at regular intervals That should be able to scale well :-)
For info, the same tool works well with 2 million images found in the Unsplash dataset [1]. Features only have to be computed once for the dataset, and only the feature vector for the user query has to be computed on the fly. Then matching features can be done in a manner that scales well. So, the present tool does not scale because the videos are part of the user query, but a company with an easy access to the video…
Yes, the feature computation on the images has to be sone only once and the representation is very efficient - 512 float16 values per image.
Re: Show HN: Search inside YouTube videos using natural language queries
#26Earlier quoted context omitted.
For info, the same tool works well with 2 million images found in the Unsplash dataset [1]. Features only have to be computed once for the dataset, and only the feature vector for the user query has to be computed on the fly. Then matching features can be done in a manner that scales well. So, the present tool does not scale because the videos are part of the user query, but a company with an easy access to the video…
Thanks for sharing! :) Yes, the feature computation on the images has to be sone only once and the representation is very efficient - 512 float16 values per image.
Re: Show HN: Search inside YouTube videos using natural language queries
#27Re: Show HN: Search inside YouTube videos using natural language queries
#28This is a demonstration of the abilities of OpenAI's CLIP neural network. The tool will download a YouTube video, extract frames at regular intervals and precompute the feature vectors of each frame using CLIP. You can then use natural language search queries to find a particular frame of the video. The results are really amazing in my opinion... If you want to experiment with it yourself, I prepared a Colab notebook…
If it could take image set as input, then perhaps we can use this to identify our self in a random Internet video e.g. Lengthy tourist video in which you suspect you could have been covered as you were there at that place on that day.
There are people already looking for such solution(I've added the link to that discussion on my profile).
Re: Show HN: Search inside YouTube videos using natural language queries
#29The problem still exists that you have to provide it the YouTube video to search within, would be nice if there was a tool to search across all of YouTube.
Many nice things could be done, but the platform (or the data owner) has all the power in its hands.
Re: Show HN: Search inside YouTube videos using natural language queries
#30Downloading YouTube videos is a Terms of Use violation, no?
belive it or not, but your browser/tv has to download the video in order to show it.