Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify autoscale parameter description #1742

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
## [UNRELEASED] neptune 1.10.3

### Fixes
- Clarified the `autoscale` parameter description in the `as_image()` docstring ([#1742](https://github.com/neptune-ai/neptune-client/pull/1742))

### Changes
- Neptune now shows a warning instead of an error when the dependency tracking file is not found ([#1739](https://github.com/neptune-ai/neptune-client/pull/1739))


## neptune 1.10.2

### Fixes
Expand Down
5 changes: 3 additions & 2 deletions src/neptune/types/atoms/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ def as_image(image, autoscale: bool = True) -> "File":
The input image pixel must be either in range [0.0, 1.0] (float) or [0, 255] (integer).
Supported are PyTorch tensors, TensorFlow/Keras tensors, NumPy arrays, PIL images,
Matplotlib figures and Seaborn figures.
autoscale: Whether Neptune should try to detect the pixel range automatically
and scale it to an acceptable format.
autoscale: Whether Neptune should try to scale image pixel values to better render them in the web app.
Scaling can distort images if their pixels lie outside the [0.0, 1.0] or [0, 255] range.
To disable auto-scaling, set the argument to False.

Returns:
`File`: value object with converted image
Expand Down
Loading