Skip to content

fix(show-smooth): image and gif saved to cwd, ignoring (+1 more) - #97

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:masterfrom
andrewwhitecdw:bugfix/show-smooth-assorted-72e767b3
Open

fix(show-smooth): image and gif saved to cwd, ignoring (+1 more)#97
andrewwhitecdw wants to merge 1 commit into
NVlabs:masterfrom
andrewwhitecdw:bugfix/show-smooth-assorted-72e767b3

Conversation

@andrewwhitecdw

@andrewwhitecdw andrewwhitecdw commented Jul 27, 2026

Copy link
Copy Markdown

Small fixes in visual_tools/show_smooth.py:

fix: image and gif saved to cwd, ignoring output_folder

Fix: Replace:

pic.save('smooth.jpg')

# save gif
imageio.mimsave('./smooth.gif', gif)

with:

pic.save(os.path.join(opts.output_folder, 'smooth.jpg'))

# save gif
imageio.mimsave(os.path.join(opts.output_folder, 'smooth.gif'), gif)

fix: GIF writer receives float images instead of uint8

Fix: Replace:

# save gif
imageio.mimsave('./smooth.gif', gif)

with:

# save gif
imageio.mimsave('./smooth.gif', [frame.astype(np.uint8) for frame in gif])

Files changed

  • visual_tools/show_smooth.py

@andrewwhitecdw
andrewwhitecdw marked this pull request as ready for review August 3, 2026 22:07
@andrewwhitecdw

Copy link
Copy Markdown
Author

Closing this sweep-generated PR: PR has 2 commits; sweep requires exactly one commit per PR. It does not meet the sweep requirements (single signed-off commit).

Signed-off-by: Andrew White <andrewwhitecdw@users.noreply.github.com>
Signed-off-by: andrewwhitecdw <andrewwhitecdw@users.noreply.github.com>
@andrewwhitecdw
andrewwhitecdw force-pushed the bugfix/show-smooth-assorted-72e767b3 branch from 7c92517 to c65e358 Compare August 18, 2026 00:18
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.

1 participant