Skip to content

Commit

Permalink
Merge pull request #152 from roboflow/docs/style-updates
Browse files Browse the repository at this point in the history
docs:  📝 enable comments on documentation pages and add comment section template
  • Loading branch information
onuralpszr authored Feb 9, 2025
2 parents cf7ad8a + ad3a96e commit 1e05c9c
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
comments: true
---


<div align="center">

<h1>maestro</h1>
Expand Down
5 changes: 5 additions & 0 deletions docs/models/florence_2.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
comments: true
---


## Overview

Florence-2 is a lightweight vision-language model open-sourced by Microsoft under the MIT license. It offers strong zero-shot and fine-tuning capabilities for tasks such as image captioning, object detection, visual grounding, and segmentation. Despite its compact size, training on the extensive FLD-5B dataset (126 million images and 5.4 billion annotations) enables Florence-2 to perform on par with much larger models like Kosmos-2. You can try out the model via HF Spaces, Google Colab, or our interactive playground.
Expand Down
4 changes: 4 additions & 0 deletions docs/models/paligemma_2.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
comments: true
---

## Overview

PaliGemma 2 is an updated and significantly enhanced version of the original PaliGemma vision-language model (VLM). By combining the efficient SigLIP-So400m vision encoder with the robust Gemma 2 language model, PaliGemma 2 processes images at multiple resolutions and fuses visual and textual inputs to deliver strong performance across diverse tasks such as captioning, visual question answering (VQA), optical character recognition (OCR), object detection, and instance segmentation. Fine-tuning enables users to adapt the model to specific tasks while leveraging its scalable architecture.
Expand Down
4 changes: 4 additions & 0 deletions docs/models/qwen_2_5_vl.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
comments: true
---

## Overview

Qwen2.5-VL is a cutting-edge vision-language model that integrates powerful visual understanding and advanced language processing in a unified framework. It excels across a range of tasks—from extensive image recognition and precise object grounding to sophisticated text extraction, document parsing, and dynamic video comprehension—making it ideal for both desktop and mobile applications.
Expand Down
49 changes: 49 additions & 0 deletions docs/theme/partials/comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% if page.meta.comments %}
<h2 id="__comments">{{ lang.t("meta.comments") }}</h2>

<script src="https://giscus.app/client.js"
data-repo="roboflow/maestro"
data-repo-id="R_kgDOKxhWCg"
data-category="Docs"
data-category-id="DIC_kwDOKxhWCs4Cmyx4"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="preferred_color_scheme"
data-lang="en"
crossorigin="anonymous"
async>
</script>

<!-- Synchronize Giscus theme with palette -->
<script>
var giscus = document.querySelector("script[src*=giscus]")

/* Set palette on initial load */
var palette = __md_get("__palette")
if (palette && typeof palette.color === "object") {
var theme = palette.color.scheme === "slate" ? "dark" : "light"
giscus.setAttribute("data-theme", theme)
}

/* Register event handlers after documented loaded */
document.addEventListener("DOMContentLoaded", function() {
var ref = document.querySelector("[data-md-component=palette]")
ref.addEventListener("change", function() {
var palette = __md_get("__palette")
if (palette && typeof palette.color === "object") {
var theme = palette.color.scheme === "slate" ? "dark" : "light"

/* Instruct Giscus to change theme */
var frame = document.querySelector(".giscus-frame")
frame.contentWindow.postMessage(
{ giscus: { setConfig: { theme } } },
"https://giscus.app"
)
}
})
})
</script>
{% endif %}

0 comments on commit 1e05c9c

Please sign in to comment.