docs: add image generation dev note#777
Conversation
|
Fern preview: https://nvidia-preview-pr-777.docs.buildwithfern.com/nemo/datadesigner
|
Code Review — PR #777:
|
Greptile SummaryAdds a new dev note explaining how image generation fits into multimodal dataset pipelines, illustrated with ~40 gallery examples across nine domains (documents, apparel, traffic, robotics, security, medical, agriculture, drone, and pets), along with the matching Fern recipe pages, nine downloadable Python recipe scripts, and the shared
|
| Filename | Overview |
|---|---|
| fern/components/ImageExample.tsx | New reusable component for dev-note image galleries; implements a CSS-only :target lightbox and injects the full CSS string on every render instance, meaning the same ~2 KB of styles is duplicated once per ImageExample in the final HTML. |
| fern/assets/recipes/image_generation/rich_document_images.py | Recipe script for synthetic business-document generation; the export_seed_parquet helper names its output column png_base64 and describes it as "base64 PNGs" in both the docstring and CLI help, but reads raw image bytes that are likely JPEG for the default model, creating a misleading column name for downstream consumers. |
| fern/versions/latest/pages/devnotes/posts/image-generation-for-multimodal-data-pipelines.mdx | Main dev-note page; correctly references the .jpg hero image and all example images; links to tutorials, recipes, and the PyData workshop. No issues found. |
| fern/versions/latest/pages/devnotes/index.mdx | Dev Notes index; new BlogCard entry correctly uses .jpg extension for the hero image. The previously flagged .png extension issue has been fixed in this PR. |
| fern/versions/latest.yml | Navigation config updated to add the new dev note and all nine image-generation recipe pages; structure is consistent with existing entries. |
| fern/versions/latest/pages/recipes/cards.mdx | Recipe card index updated with nine new Image Generation cards; titles, icons, and hrefs are consistent and match the navigation config. |
Sequence Diagram
%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
participant User
participant Browser
participant IE as ImageExample component
participant LB as CSS target lightbox
User->>Browser: Page loads
Browser->>IE: Renders 40 ImageExample instances
IE->>Browser: Injects style tag with IMAGE_EXAMPLE_CSS on each render
IE->>Browser: Renders thumbnail linked to hash anchor
User->>Browser: Clicks thumbnail
Browser->>LB: URL hash set to image-example-slug
LB->>Browser: lightbox target selector triggers display flex
Browser-->>User: Lightbox overlay opens
User->>Browser: Clicks backdrop or close button with href hash underscore
Browser->>LB: URL hash set to underscore no matching element
LB->>Browser: display none restored
Browser-->>User: Lightbox closes
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
participant User
participant Browser
participant IE as ImageExample component
participant LB as CSS target lightbox
User->>Browser: Page loads
Browser->>IE: Renders 40 ImageExample instances
IE->>Browser: Injects style tag with IMAGE_EXAMPLE_CSS on each render
IE->>Browser: Renders thumbnail linked to hash anchor
User->>Browser: Clicks thumbnail
Browser->>LB: URL hash set to image-example-slug
LB->>Browser: lightbox target selector triggers display flex
Browser-->>User: Lightbox overlay opens
User->>Browser: Clicks backdrop or close button with href hash underscore
Browser->>LB: URL hash set to underscore no matching element
LB->>Browser: display none restored
Browser-->>User: Lightbox closes
Reviews (4): Last reviewed commit: "docs: tighten image generation gallery i..." | Re-trigger Greptile
Signed-off-by: Nabin Mulepati <nmulepati@nvidia.com>
ca3f7d4 to
fa74188
Compare
Signed-off-by: Nabin Mulepati <nmulepati@nvidia.com>
Signed-off-by: Nabin Mulepati <nmulepati@nvidia.com>
📋 Summary
Adds a Data Designer dev note showing how image generation fits into multimodal dataset pipelines, with a gallery of controlled examples across documents, products, traffic scenes, robotics, safety-review imagery, medical-style imagery, agriculture, drone inspection, and playful pet edits. The PR also adds the corresponding Fern recipe pages, example media, reusable display component, and downloadable recipe scripts under
fern/assets.🔗 Related Issue
N/A
🔄 Changes
ImageExamplecomponent for paired image/control displays.fern/assets/recipes/image_generation.🧪 Testing
git diff --checkpassednpx -y fern-api@5.41.1 check --warningspassed locally with 0 errors and 1 auth-dependent redirects warningbuild-and-deploypassed in CImake testnot run (docs-only change)✅ Checklist