Torch-dreams

Latest version: v4.0.0

Safety actively analyzes 682334 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

4.0.0

**Updates:**
- Added support for batch size>1 on a single image parameter + objective (`AutoImageParam` now has a new arg `batch_size` which defaults to `1`). This would lead to higher quality visualizations with a smaller number of iterations.
- Fix unintended `PytorchVersionError` on torch `2.x`. Thanks matthiasgeihs 🙌

**Interface change:**
The input (`layer_outputs`) in custom objective functions is *not* anymore a list of tensors of shape `(c, h, w)`. It's now a list of tensors of shape `(n, c, h, w)` where `n` = batch size. (The same applies for other shapes of intermediate layer outputs `(...) -> (n, ...)`)

This is an example of an old v/s new objective function:
![image](https://github.com/Mayukhdeb/torch-dreams/assets/53133634/e834bc88-5fb5-408f-82c2-ccd50df213c9)

3.0.0

- Add support for batched image parameters + objective functions (speed++ :rocket:)
- Adapt to latest torch version
- Fix casing + improved interface (breaking change)

2.3.2

* Add default support for any version of torch >= `v1.8`

2.3.1

Changes:
* (48) Add support for torch `1.9.x`. (Thanks to seba-eng)

2.3.0

Updates:
* Added support for models with custom image normalizations with `torch_dreams.dreamer.set_custom_normalization()`

Bug fixes:
* Fixed corrupted image outputs on `self.__array__()` for `torch_dreams.masked_image_param`

2.1.1

changes:
* added support for caricatures, which was inspired from [this issue](https://github.com/tensorflow/lucid/issues/121)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.