Prompt Tool for Kosmos 2 is a powerful and intuitive tool that allows you to load images and draw bounding boxes on them. You can annotate these bounding boxes with phrases of your choice.
You can check out the online demo here.
No installation is required for this tool. Simply clone the repository and run a local server. Here's how you can do it:
-
Clone the repository:
git clone https://github.com/sheldonchiu/kosmos2-prompt-tool.git
-
Navigate to the cloned directory:
cd kosmos2-prompt-tool
-
Run the local server using Python:
python3 -m http.server
After following these steps, you can view the application by visiting http://localhost:8000
in your web browser.
-
Load an image to the canvas using the "Upload Image" button.
-
Draw bounding boxes on the image by clicking and dragging.
-
Enter a phrase in the "Phrase" input field.
-
Click the "Add Bounding Box" button to add the bounding box details and your phrase to the output.
-
Repeat steps 2-4 to add multiple bounding boxes to the output.