Skip to content

Refactor mask visualization utils from ImageMaskInput to visualization module#1756

Closed
aobo-y wants to merge 5 commits into
meta-pytorch:masterfrom
aobo-y:export-D90036627
Closed

Refactor mask visualization utils from ImageMaskInput to visualization module#1756
aobo-y wants to merge 5 commits into
meta-pytorch:masterfrom
aobo-y:export-D90036627

Conversation

@aobo-y

@aobo-y aobo-y commented Jan 2, 2026

Copy link
Copy Markdown
Contributor

Summary: Extract border and legend drawing logic from plot_mask_overlay into reusable utility functions draw_mask_border and draw_mask_legend in the visualization

Differential Revision: D90036627

aobo-y added 5 commits January 2, 2026 12:36
Summary:

add util to visualize how the image is segmented into features

Differential Revision: D89953376
Summary: as title

Differential Revision: D89954220
Summary:

as title

Reviewed By: styusuf

Differential Revision: D89954477
Summary:

Extract the mask list generation logic into a reusable method, centralizing the logic for creating binary masks from either mask_list or mask tensor

Differential Revision: D90034703
…n module

Summary: Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Differential Revision: D90036627
@meta-cla meta-cla Bot added the cla signed label Jan 2, 2026
@meta-codesync

meta-codesync Bot commented Jan 2, 2026

Copy link
Copy Markdown
Contributor

@aobo-y has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90036627.

aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 2, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 2, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 2, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 3, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 3, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 3, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 3, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 3, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 3, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 3, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 5, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Reviewed By: craymichael

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 5, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Reviewed By: craymichael

Differential Revision: D90036627
aobo-y added a commit to aobo-y/captum that referenced this pull request Jan 5, 2026
…n module (meta-pytorch#1756)

Summary:

Extract border and legend drawing logic from `plot_mask_overlay` into reusable utility functions `draw_mask_border` and `draw_mask_legend` in the visualization

Reviewed By: craymichael

Differential Revision: D90036627
@meta-codesync meta-codesync Bot closed this in fa5be1e Jan 5, 2026
@meta-codesync

meta-codesync Bot commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in fa5be1e.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants