|
10 | 10 | from watchdog.observers import Observer
|
11 | 11 | from watchdog.events import FileSystemEventHandler
|
12 | 12 | import time
|
| 13 | +from urllib.parse import quote_plus |
13 | 14 |
|
14 |
| -import cv2 |
15 |
| -import numpy as np |
16 |
| -import supervision as sv |
17 | 15 | from jinja2 import Environment, FileSystemLoader
|
18 |
| -from supervision.detection.utils import box_iou_batch |
19 | 16 | from tqdm import tqdm
|
20 | 17 | from itertools import combinations
|
21 | 18 |
|
@@ -499,6 +496,13 @@ def run_model_with_prompt(model_name, model, assessment):
|
499 | 496 | by_category_results=result_assessments_by_model_by_category[model_name],
|
500 | 497 | average_time=average_times_by_model[model_name],
|
501 | 498 | title=f"{model_name} Results - Vision AI Checkup",
|
| 499 | + description=f"Explore the results of {model_name} on various vision tasks, from object understanding to document question answering.", |
| 500 | + og_image="https://visioncheckup.com" + quote_plus( |
| 501 | + os.path.join( |
| 502 | + OUTPUT_DIR, |
| 503 | + f"{slugify(model_name)}", |
| 504 | + ) |
| 505 | + ), |
502 | 506 | )
|
503 | 507 | )
|
504 | 508 |
|
@@ -554,6 +558,10 @@ def delete_bytes(obj):
|
554 | 558 | for category in assessment_categories
|
555 | 559 | },
|
556 | 560 | title="Prompts | Vision AI Checkup",
|
| 561 | + description="Explore prompts used to evaluate various vision models on different tasks.", |
| 562 | + og_image="https://visioncheckup.com" + quote_plus( |
| 563 | + os.path.join(OUTPUT_DIR, "prompts/index.html") |
| 564 | + ), |
557 | 565 | )
|
558 | 566 |
|
559 | 567 | with open(os.path.join(OUTPUT_DIR, "prompts/index.html"), "w") as file:
|
@@ -595,6 +603,14 @@ def delete_bytes(obj):
|
595 | 603 | failed_count=sum(1 for result in model_results if not result["correct"]),
|
596 | 604 | total_count=len(model_results),
|
597 | 605 | title=f"{assessment['assessment_name']} - Vision AI Checkup",
|
| 606 | + description=f"View the results of {assessment['assessment_name']} when run against various SOTA vision models." |
| 607 | + og_image="https://visioncheckup.com" + quote_plus( |
| 608 | + os.path.join( |
| 609 | + OUTPUT_DIR, |
| 610 | + "assessments", |
| 611 | + slugify(assessment["assessment_name"]), |
| 612 | + ) |
| 613 | + ), |
598 | 614 | )
|
599 | 615 | os.makedirs(
|
600 | 616 | os.path.join(OUTPUT_DIR, "assessments", slugify(assessment["assessment_name"])),
|
@@ -690,7 +706,10 @@ def delete_bytes(obj):
|
690 | 706 | by_category_results=by_category_results,
|
691 | 707 | assessments=assessments,
|
692 | 708 | title=f"{model1} vs {model2} - Vision AI Checkup",
|
693 |
| - description=f"See how {model1} and {model2} compare on defect detection, document understanding, VQA, and more." |
| 709 | + description=f"See how {model1} and {model2} compare on defect detection, document understanding, VQA, and more.", |
| 710 | + og_image="https://v1.screenshot.11ty.dev/" + quote_plus( |
| 711 | + f"https://visioncheckup.com/compare/{slugify(model1)}-vs-{slugify(model2)}/" |
| 712 | + ), |
694 | 713 | )
|
695 | 714 |
|
696 | 715 | os.makedirs(os.path.join(OUTPUT_DIR, "compare"), exist_ok=True)
|
|
0 commit comments