torch-dreams

Flexible Feature visualization on PyTorch, for research and art

MIT License

Downloads
622
Stars
237
Committers
6
torch-dreams - torch-dreams v4.0.0 Latest Release

Published by Mayukhdeb over 1 year ago

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

torch-dreams - torch-dreams v3.0.0

Published by Mayukhdeb almost 2 years ago

  • Add support for batched image parameters + objective functions (speed++ 🚀)
  • Adapt to latest torch version
  • Fix casing + improved interface (breaking change)
torch-dreams - torch-dreams v2.3.2

Published by Mayukhdeb almost 3 years ago

  • Add default support for any version of torch >= v1.8
torch-dreams - torch-dreams v2.3.1

Published by Mayukhdeb over 3 years ago

Changes:

  • (#48) Add support for torch 1.9.x. (Thanks to @seba-eng)
torch-dreams - torch-dreams v2.3.0

Published by Mayukhdeb over 3 years ago

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
torch-dreams - torch-dreams v2.1.1

Published by Mayukhdeb over 3 years ago

changes:

  • added support for caricatures, which was inspired from this issue
torch-dreams - torch-dreams v2.1.0

Published by Mayukhdeb over 3 years ago

Changes:

  • Added support for custom images with custom_image_param
torch-dreams - torch-dreams v2.0.4

Published by Mayukhdeb over 3 years ago

Changes:

  • Moved completely to torch v1.8.x
  • FFT parameterization with shape [1, 3, height, width] from [1, 3, height, width//2, 2]
  • Fixed failing tests due to incorrect device allocations
torch-dreams - torch-dreams v2.0.3

Published by Mayukhdeb over 3 years ago

Changes:

  • Fix random crashes on google colab caused due to torch.fft.irfftn on torch v1.8.x
torch-dreams - torch-dreams v2.0.2

Published by Mayukhdeb over 3 years ago

Updates:

  • auto_image_param instances can be saved as images with image_param.save('image.jpg')
  • Fixed random crashes on google colab
  • dreamer.get_snapshot() now in testing
  • feedback loops now don't modify the original image parameter. Uses a deepcopy instead
torch-dreams - torch-dreams v2.0.1

Published by Mayukhdeb over 3 years ago

  • Optimization on multiple models simultaneously is now possible
  • Ability to use custom torchvision.transforms
  • Much better visualization quality thanks to torch.fft
  • Supports both torch v1.7 and v1,8
  • Faster optimizations
torch-dreams -

Published by Mayukhdeb almost 4 years ago

Package Rankings
Top 13.06% on Pypi.org
Badges
Extracted from project README
Open In Colab build codecov
Related Projects