Microsoft OmniParser: Best AI Screen Parser to Control Computer?

Mervin Praison · Beginner ·🧠 Large Language Models ·1y ago

Key Takeaways

Demonstrates Microsoft OmniParser for extracting elements from screenshots with precise positioning

Full Transcript

now we have Omni passer from Microsoft if there is a user task a restaurant in Johannesburg with vegan option then you can see it's passing the screen with each individual elements then it's taking action by clicking restaurants now it's identifying the elements and typing the city name Johannesburg then it's clicking the link and off that it's choosing vegan option by identifying and finally we got the answer toss complete this is using Omni Parts the model released by Microsoft which is capable of extracting every elements from a screenshots including its exact position if you see the performance for omnip posa with GPT 4 V it's comparatively much better than the general GPT 4V version even when you compare that with other models with Omni paa this looks much better in element extraction from a screenshot in this we'll be seeing how you can run Omni passor in the code format in a notebook format and also in gradi your user interface here is a user interface I'm going to take the screenshot of this page uploading that here and then clicking submit in omony parer here you can see the output it's able to identify every single element from that screenshot that includes the exact position that is super cool by the end of this video you will learn how you can run this Omni parsa in your computer with GPU and having the ability to run a demo like this going through omnip Passa research paper the code released in GitHub and it contains thousands of stars in just few days and all the models available in hugging face I'm going to take you through step by step but before that I regularly create videos in regards to Artificial Intelligence on my YouTube channel so do subscribe and click the Bell icon to stay tuned make sure you click the like button so this video can be helpful for many others like you first step get clone get t.com Omer and then click enter now navigate to the Omer folder now we are inside that folder next pip install hyphen R requirements.txt and then click enter this installed all the required packages next I have a bash script using this you are able to download the Omni parel model from hugging face I will put all the code in the description below so I'm going to run this code I've saved that in download. sh file so in your terminal Bash download Dosh and then click enter this will automatically go through individual link and then download the model now the model weights got downloaded in appropriate folder and it converted that to best. PT that's a required file so everything is taken care of by just running that one script next just type Python gradior demo. and then click enter this will automatically run the gradio interface as a side note I'm using this configuration which with RTX a6000 graphic card and a virtual CPU and here you can see the gradio URL is ready for us to view so I can just open this and here is the user interface so here I'm uploading a screenshot and then clicking submit now it's processing the request now we clearly identify the different elements in the screenshot and you have the list of past elements there are two more things which I want to show you which is how you can run this Omni passor in the code format and also in Notebook so in regards to code you have three different steps first step is to import libraries Second Step configuration and third step to pass an image so now I'm going to show you how you can code so step number one importing libraries so these are the libraries we are importing now step number two configuration so I'm going to add few configuration setting the device Cuda and then loading the model this is where the model got downloaded you can see that in the folder weights I can detect and here you got the models and and assigning that model to the device that is the Cuda device then we are loading the caption model processor so here we are using icon dedi that is the YOLO model and for caption we are using Florence 2 then we are loading the image from the path so if I open this image so this is the image and we are going to pause elements from this image so that's what's here we opening it converting it then giving some settings so I'm keeping all these default now final step is paring that image so step number three get labeled image and results so in the step number three we are using two different function check OCR box and get label image using those two function and we are passing all the configuration here whatever we defined at the top then using that we are getting the decoded image and then finally saving it that's it only three steps importing libraries configuration and running the model now I'm going to run this code in your terminal Python app.py and then click enter this will automatically load the model run it it's using exactly the image which we have mentioned before and parsing the result it's saving that result in a file and printing out the elements detected so if I open the saved image so here is the labeled image labeling every single element from both of these tabs this is super cool and also I can see it's very accurate which means we can EXT this further to take action using all these elements and its position same as running code you are able to run that in Notebook so if I open the folder you got demo. iynb that is a notebook click on that there you got the complete code so it's just matter of clicking run all it'll automatically run every single box and here we are providing two different Image Google page and multi-tab windows it's using the same code which I explained before and then finally it's giving you this output ability to detect elements in the screenshot and I'm really excited about this so when you see the paper GPD 4V as a general agent is largely underestimated due to the lack of robust screen passing technique so the current system lacks two different things one is reliably identifying icons within the user interface second understanding the semantics of various elements so to solve these two issues we have om Passa which is capable of identifying icons and understanding the semantics of these elements this is achieved by curating interactable icon detection data sets using popular web pages and an icon description data set then these data sets are used to fine-tune specialized models which is able to identify elements from the screen and caption those elements with semantics so technically they use two models one is the fine-tuned version to detect elements second one is the caption model to understand the semantics so here in our code first we used this model to identify elements this is the fine-tuned model then we use Florence to the caption model to do semantics now you are able to easily extend this further to create a full-fledged application which is like this where you are able to provide a task and it's able to completed for you considering you like omnip Passa and it uses Florence model of already covered Florence model the captioning model in more detail which gives you in-depth knowledge on how these images gets processed and I highly recommend for you to watch that and I will put that link in here so I will see you there

Original Description

🔥 Complete Guide: Microsoft's Omni Parser - Installation & Implementation In this comprehensive tutorial, we explore Microsoft's groundbreaking Omni Parser, demonstrating its powerful capabilities in extracting elements from screenshots with precise positioning. Watch as we showcase its superiority over GPT-4V and guide you through the complete installation process. 🛠️ What You'll Learn: Running Omni Parser on your local machine with GPU support Step-by-step implementation in code, notebook, and Gradio UI Understanding the technology behind element extraction and semantic comprehension Practical demonstration with real-world examples 🔧 Technical Requirements: GPU support Python environment Git installation 💻 Installation Steps: Clone repository: git clone https://github.com/microsoft/OmniParser Navigate to folder: cd OMNI Install requirements: pip install -r requirements.txt Download model weights (script provided below) Run Gradio demo: python gradio_demo.py 📚 Key Features: Accurate element detection from screenshots Precise positioning information Semantic understanding of UI elements Integration with Florence 2 caption model Superior performance compared to GPT-4V 🔗 Important Links: GitHub Repository: https://github.com/microsoft/OmniParser Model Weights: Available on Hugging Face https://mer.vin/2024/10/omni-parser/ 💡 Pro Tips: Use bash script for automated model download Configure CUDA device for optimal performance Implement in both notebook and code format Utilize Gradio interface for quick testing ⚡ Performance Highlights: Enhanced element extraction compared to GPT-4V Reliable icon identification Accurate semantic understanding Robust screen parsing capabilities 🎯 Perfect For: AI Developers UI/UX Researchers Automation Engineers Machine Learning Enthusiasts 0:00 - Intro to Microsoft's Omni Parser 0:31 - Omni Parser Overview 1:07 - UI Demo 1:35 - Setup Instructions 2:09 - Model Download Process 2:48 - Gradio Interface Demo 3:30 - Code
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Mervin Praison · Mervin Praison · 0 of 60

← Previous Next →
1 Build GCP Infra using Pulumi in YAML format
Build GCP Infra using Pulumi in YAML format
Mervin Praison
2 How to Convert a Pulumi YAML File to Python Format
How to Convert a Pulumi YAML File to Python Format
Mervin Praison
3 Speed Up AWS EKS: A Complete Guide to Performance Tuning & Debugging!
Speed Up AWS EKS: A Complete Guide to Performance Tuning & Debugging!
Mervin Praison
4 Learn GCP GKE to AWS EKS Migration in Just 5 Minutes: Quick Guide
Learn GCP GKE to AWS EKS Migration in Just 5 Minutes: Quick Guide
Mervin Praison
5 AWS & Kubernetes: The Definitive Guide to Data Persistence with PV and PVC
AWS & Kubernetes: The Definitive Guide to Data Persistence with PV and PVC
Mervin Praison
6 ChatGPT Voice Conversation RELEASED! It's AMAZING!! (Demo)
ChatGPT Voice Conversation RELEASED! It's AMAZING!! (Demo)
Mervin Praison
7 How to Install Mistral 7B in Minutes: Quick & Easy Guide! ✅
How to Install Mistral 7B in Minutes: Quick & Easy Guide! ✅
Mervin Praison
8 Code Llama Install Locally: 🐍💻 Elevate Your Python Skills!
Code Llama Install Locally: 🐍💻 Elevate Your Python Skills!
Mervin Praison
9 Orca Mini: Your Ultimate Guide to Install and Test on Mac & Linux 💻
Orca Mini: Your Ultimate Guide to Install and Test on Mac & Linux 💻
Mervin Praison
10 Quick & Easy Vicuna Setup on Mac and Linux 💻
Quick & Easy Vicuna Setup on Mac and Linux 💻
Mervin Praison
11 Quick Guide: Llama2 Local Installation and ChatGPT with pip! Python🛠️
Quick Guide: Llama2 Local Installation and ChatGPT with pip! Python🛠️
Mervin Praison
12 Query PDFs Like a Pro with Local GPT: Full Setup Guide! 📜
Query PDFs Like a Pro with Local GPT: Full Setup Guide! 📜
Mervin Praison
13 LM Studio: EASIEST way to Run Large Language Models Locally!
LM Studio: EASIEST way to Run Large Language Models Locally!
Mervin Praison
14 AMAZING ChatGPT Vision is OUT! 🤯 14+ Examples (Step-by-Step) FULL Tutorial
AMAZING ChatGPT Vision is OUT! 🤯 14+ Examples (Step-by-Step) FULL Tutorial
Mervin Praison
15 Unbelievable! Build ANY App Instantly with Smol AI! 😲🔥
Unbelievable! Build ANY App Instantly with Smol AI! 😲🔥
Mervin Praison
16 Amazing! AutoGen Made Easy: A Step-by-Step Beginners Guide 📚
Amazing! AutoGen Made Easy: A Step-by-Step Beginners Guide 📚
Mervin Praison
17 How to Set Up LoLLMS and Run LLMs Locally! 🚀 Step-by-Step Tutorial
How to Set Up LoLLMS and Run LLMs Locally! 🚀 Step-by-Step Tutorial
Mervin Praison
18 GPT4All: INSANE Way to Run Large Language Models Locally! 😲 Step-By-Step Tutorial
GPT4All: INSANE Way to Run Large Language Models Locally! 😲 Step-By-Step Tutorial
Mervin Praison
19 Incredible AI-Powered NPCs in Unity Game Engine: Step by Step Tutorial!🤯
Incredible AI-Powered NPCs in Unity Game Engine: Step by Step Tutorial!🤯
Mervin Praison
20 MemGPT 🧠 LLM as Operating System. It's INSANE! Step-by-Step Tutorial 🤯
MemGPT 🧠 LLM as Operating System. It's INSANE! Step-by-Step Tutorial 🤯
Mervin Praison
21 Text Generation Web UI: MIND-BLOWING Way to Run LLM Locally! 🤯
Text Generation Web UI: MIND-BLOWING Way to Run LLM Locally! 🤯
Mervin Praison
22 Unlock the INSANE Power of OpenAI GPT-4 with C#/.NET! 😲
Unlock the INSANE Power of OpenAI GPT-4 with C#/.NET! 😲
Mervin Praison
23 Integrate Langchain and Ollama for Local AI Power 🤯 Indeed POWERFUL!
Integrate Langchain and Ollama for Local AI Power 🤯 Indeed POWERFUL!
Mervin Praison
24 ChatDev: INSANE Virtual AI Agents! Future of Software Development 😲
ChatDev: INSANE Virtual AI Agents! Future of Software Development 😲
Mervin Praison
25 Query PDFs Using Mistral: Unlock INSANE Power! 🤯
Query PDFs Using Mistral: Unlock INSANE Power! 🤯
Mervin Praison
26 AutoGen + Open-Source LLMs: UNBELIEVABLE! Step-by-Step Tutorial You Can't Miss! 🤯
AutoGen + Open-Source LLMs: UNBELIEVABLE! Step-by-Step Tutorial You Can't Miss! 🤯
Mervin Praison
27 AutoGen + Text Generation WebUI: Unbelievable 100% Local Private Setup 🤯
AutoGen + Text Generation WebUI: Unbelievable 100% Local Private Setup 🤯
Mervin Praison
28 MemGPT: Amazing! External Context for LLM #ai #llm #memgpt  #generativeai #mem #gpt #openai #chatgpt
MemGPT: Amazing! External Context for LLM #ai #llm #memgpt #generativeai #mem #gpt #openai #chatgpt
Mervin Praison
29 GeniA: Kubernetes + AI for MIND-BLOWING Operational Efficiency! 🤯 FULL Tutorial
GeniA: Kubernetes + AI for MIND-BLOWING Operational Efficiency! 🤯 FULL Tutorial
Mervin Praison
30 VertexAI Meets LangChain for Mind-Blowing AI Conversations! 😲 Step by Step Tutorial
VertexAI Meets LangChain for Mind-Blowing AI Conversations! 😲 Step by Step Tutorial
Mervin Praison
31 Simplified ChatGPT API Setup on Node.js for Newbies! 😍 Step by Step Tutorial
Simplified ChatGPT API Setup on Node.js for Newbies! 😍 Step by Step Tutorial
Mervin Praison
32 Autogen: Ollama integration 🤯 Step by Step Tutorial. Mind-blowing!
Autogen: Ollama integration 🤯 Step by Step Tutorial. Mind-blowing!
Mervin Praison
33 LiteLLM: One-Function Call to ANY Large Language Model! 🤯 UNBELIEVABLE!
LiteLLM: One-Function Call to ANY Large Language Model! 🤯 UNBELIEVABLE!
Mervin Praison
34 ChatGPT Chatbot in Less Time Than You Think! 🚀😎 Step-by-Step Tutorial
ChatGPT Chatbot in Less Time Than You Think! 🚀😎 Step-by-Step Tutorial
Mervin Praison
35 LiteLLM Chatbot: Build Your Own in MINUTES! INSANE! 🤖🔥
LiteLLM Chatbot: Build Your Own in MINUTES! INSANE! 🤖🔥
Mervin Praison
36 Create Chatbot: Turn ANY Open-Source LLM into a Conversation Pro! 🤖
Create Chatbot: Turn ANY Open-Source LLM into a Conversation Pro! 🤖
Mervin Praison
37 Create Chatbot: Ollama Integration Made UNBELIEVABLY Easy! 🎉
Create Chatbot: Ollama Integration Made UNBELIEVABLY Easy! 🎉
Mervin Praison
38 LlamaIndex + ChatGPT: Ingest Data and Experience UNBELIEVABLE Query Results! 🌟
LlamaIndex + ChatGPT: Ingest Data and Experience UNBELIEVABLE Query Results! 🌟
Mervin Praison
39 INSANE! OpenAgents: Automated Data Analysis with Kaggle 🤯
INSANE! OpenAgents: Automated Data Analysis with Kaggle 🤯
Mervin Praison
40 React.js LLM Agent for Next-Gen Coding using ChatGPT 🚀 Mind-Blowing 🤯
React.js LLM Agent for Next-Gen Coding using ChatGPT 🚀 Mind-Blowing 🤯
Mervin Praison
41 MemGPT + Any LLM 🚀 100% Local & Private Integration Unveiled! Unlimited Memory
MemGPT + Any LLM 🚀 100% Local & Private Integration Unveiled! Unlimited Memory
Mervin Praison
42 MemGPT  + AutoGen 🧠🤖 Unlimited Memory & Autonomous AI Agents! INSANE🤯
MemGPT + AutoGen 🧠🤖 Unlimited Memory & Autonomous AI Agents! INSANE🤯
Mervin Praison
43 AutoGen + Google's Palm LLM & More! Revolutionary AI Integration 🚀
AutoGen + Google's Palm LLM & More! Revolutionary AI Integration 🚀
Mervin Praison
44 MemGPT & LM Studio Integration Revealed! 🔥 Next-Level AI
MemGPT & LM Studio Integration Revealed! 🔥 Next-Level AI
Mervin Praison
45 🚀 AutoLLM: Unlock the Power of 100+ Language Models! Step-by-Step Tutorial
🚀 AutoLLM: Unlock the Power of 100+ Language Models! Step-by-Step Tutorial
Mervin Praison
46 AutoLLM & Gradio Integration You Won't Believe! 🤯 Mind-Blowing
AutoLLM & Gradio Integration You Won't Believe! 🤯 Mind-Blowing
Mervin Praison
47 AutoLLM & FastAPI Tutorial: Query 100+ Language Models! 😱
AutoLLM & FastAPI Tutorial: Query 100+ Language Models! 😱
Mervin Praison
48 Quivr: LLM's Second Brain - Transforming Data Management & Advanced Query with AI! 🤯
Quivr: LLM's Second Brain - Transforming Data Management & Advanced Query with AI! 🤯
Mervin Praison
49 AutoGen & MemGPT with Local LLM: A Complete Setup Tutorial! 🧠 AMAZING 🤯
AutoGen & MemGPT with Local LLM: A Complete Setup Tutorial! 🧠 AMAZING 🤯
Mervin Praison
50 LocalAI: Free, Open Source OpenAI Alternative 🚀 INSANE 🤯 Step-by-Step Tutorial
LocalAI: Free, Open Source OpenAI Alternative 🚀 INSANE 🤯 Step-by-Step Tutorial
Mervin Praison
51 Yarn Mistral 7B 128k LARGE context window, Small size 🤯 INSANE 🚀 Setup Tutorial!
Yarn Mistral 7B 128k LARGE context window, Small size 🤯 INSANE 🚀 Setup Tutorial!
Mervin Praison
52 Zephyr-7B: The Small and Mighty LLM 🤯 Step by Step Tutorial! 📘
Zephyr-7B: The Small and Mighty LLM 🤯 Step by Step Tutorial! 📘
Mervin Praison
53 Promptfoo: How to Test Your LLM ? 🚀  VERY EASY!
Promptfoo: How to Test Your LLM ? 🚀 VERY EASY!
Mervin Praison
54 Pydantic: How to Validate LLM Responses? 🚀 Quality Response. VERY EASY!!!!
Pydantic: How to Validate LLM Responses? 🚀 Quality Response. VERY EASY!!!!
Mervin Praison
55 Pydantic: FORCE Your AI to Respond Back in UPPERCASE! 🤯 Step-by-Step Tutorial 🔥
Pydantic: FORCE Your AI to Respond Back in UPPERCASE! 🤯 Step-by-Step Tutorial 🔥
Mervin Praison
56 Pydantic: How to use LLM to convert unstructured data to structured data?
Pydantic: How to use LLM to convert unstructured data to structured data?
Mervin Praison
57 AutoGen Function Calling: INSANE 🚀 Custom Integrations! Step-by-Step Tutorial 🤯
AutoGen Function Calling: INSANE 🚀 Custom Integrations! Step-by-Step Tutorial 🤯
Mervin Praison
58 OpenAI Assistants API + Python 🤖 How to get started? (FULL Tutorial) 🤯 INSANE
OpenAI Assistants API + Python 🤖 How to get started? (FULL Tutorial) 🤯 INSANE
Mervin Praison
59 GPT-4 Vision API 🤯 INSANE Video Recognition Powers! Step-by-Step Tutorial 🚀
GPT-4 Vision API 🤯 INSANE Video Recognition Powers! Step-by-Step Tutorial 🚀
Mervin Praison
60 GPT-4 Vision API 🚀 The Future of Image Recognition! 🤯 Step-by-Step Tutorial
GPT-4 Vision API 🚀 The Future of Image Recognition! 🤯 Step-by-Step Tutorial
Mervin Praison

Related Reads

📰
Open-Weight LLM API Integration: A Developer Guide to Building with Transparent AI
Learn to integrate open-weight LLM APIs for transparent AI, enabling fine-grained control and inspecting the architecture behind the intelligence
Dev.to AI
📰
Stop Writing Boilerplate: How I Automated My Entire Workflow with LLM APIs
Automate your LLM workflow using APIs to reduce repetitive code, increasing productivity and efficiency
Dev.to AI
📰
The real AI race may no longer be at the frontier
The AI race may shift from frontier models to open models due to cost, accessibility, and ownership, impacting production AI and enterprise adoption
TechCrunch AI
📰
Building a Document-RAG Agent on GCP's Agent Development Kit (ADK)
Learn to build a Document-RAG agent on GCP's Agent Development Kit (ADK) for efficient document-based conversational AI
Dev.to · Dale Nguyen

Chapters (7)

Intro to Microsoft's Omni Parser
0:31 Omni Parser Overview
1:07 UI Demo
1:35 Setup Instructions
2:09 Model Download Process
2:48 Gradio Interface Demo
3:30 Code
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →