Skip to content

Multiple crops example - #5656

Open
mzient wants to merge 4 commits into
NVIDIA:mainfrom
mzient:multiple_crops_example
Open

Multiple crops example#5656
mzient wants to merge 4 commits into
NVIDIA:mainfrom
mzient:multiple_crops_example

Conversation

@mzient

@mzient mzient commented Oct 2, 2024

Copy link
Copy Markdown
Collaborator

Category:

Other (e.g. Documentation, Tests, Configuration)

Description:

Implements a pipeline example requested by a user in #1579

Additional information:

Affected modules and functionalities:

N/A

Key points relevant for the review:

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@dali-automaton

Copy link
Copy Markdown
Collaborator

CI MESSAGE: [18958041]: BUILD STARTED

@mzient
mzient force-pushed the multiple_crops_example branch from 614b649 to fc05029 Compare October 2, 2024 14:55
@dali-automaton

Copy link
Copy Markdown
Collaborator

CI MESSAGE: [18958465]: BUILD STARTED

@NVIDIA NVIDIA deleted a comment from dali-automaton Oct 2, 2024
@dali-automaton

Copy link
Copy Markdown
Collaborator

CI MESSAGE: [18958465]: BUILD PASSED

@stiepan

stiepan commented Oct 4, 2024

Copy link
Copy Markdown
Member

For the future, I belive we could make the resize and crop ops support similar trick, likely in a bit more straightforward way.

@review-notebook-app

review-notebook-app Bot commented Oct 4, 2024

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

szkarpinski commented on 2024-10-04T11:44:12Z
----------------------------------------------------------------

Line #42.        )  # convert to float and mark outermost dimension as"frame"

Nitpicks: Why +0.0 and not cast? Also, there's a missing space before "frame"


@review-notebook-app

review-notebook-app Bot commented Oct 4, 2024

Copy link
Copy Markdown

View / edit / reply to this conversation on ReviewNB

szkarpinski commented on 2024-10-04T11:44:13Z
----------------------------------------------------------------

How about adding a sentence explaining what the images above mean? The first single image was confusing to me - I expected sequences of equal length. It took me some time to notice num_crops = random (...) in the code.


mzient commented on 2024-11-04T11:46:51Z
----------------------------------------------------------------

Yeah, I'd recommend playing with the seed a bit to get an example with three different sequence lengths, preferably without a single-image sequence.

mzient commented Nov 4, 2024

Copy link
Copy Markdown
Collaborator Author

Yeah, I'd recommend playing with the seed a bit to get an example with three different sequence lengths, preferably without a single-image sequence.


View entire conversation on ReviewNB

@mzient
mzient force-pushed the multiple_crops_example branch from fc05029 to 0198687 Compare December 10, 2025 15:07
@greptile-apps

greptile-apps Bot commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR adds and indexes a Jupyter example demonstrating how to produce multiple fixed-size or resized crops from each input image.

  • Adds equal-sized cropping with per-frame affine transforms.
  • Adds variable-sized crops fused with resizing.
  • Registers the notebook under the image-processing examples and relevant operator references.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
docs/examples/image_processing/index.py Registers the new multiple-crops notebook and links it from the relevant operator references.
docs/examples/image_processing/multiple_crops.ipynb Adds executable fixed-size and variable-size multiple-crop pipeline examples.

Reviews (3): Last reviewed commit: "Update the example." | Re-trigger Greptile

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Comments (2)

  1. docs/examples/image_processing/multiple_crops.ipynb, line 1 (link)

    style: Typo: "diplay" should be "display"

  2. docs/examples/image_processing/multiple_crops.ipynb, line 26-27 (link)

    style: Unused imports: matplotlib.patches as patches and math are imported but never used in the notebook.

2 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

mzient added 3 commits August 26, 2026 15:06
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
@mzient
mzient force-pushed the multiple_crops_example branch from 0198687 to 6ce35dd Compare August 26, 2026 13:10
@copy-pr-bot

copy-pr-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
@dali-automaton

Copy link
Copy Markdown
Collaborator

CI MESSAGE: [65036486]: BUILD STARTED

@dali-automaton

Copy link
Copy Markdown
Collaborator

CI MESSAGE: [65036486]: BUILD FAILED

@dali-automaton

Copy link
Copy Markdown
Collaborator

CI MESSAGE: [65036486]: BUILD PASSED

@dali-automaton

Copy link
Copy Markdown
Collaborator

CI MESSAGE: [66747938]: BUILD STARTED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants