Skip to content

Some essential feature request for tensorboard #3750

Open
@vishal733

Description

@vishal733

Tensorboard is amazing. But it could be even more amazing. Here are some thoughts:

  1. When I create large projects with tensorboard, the memory usage goes to something like 16 GB (for a deep learning project involving computer vision). And it also keeps growing with time, and eventually crashes my system. Tensorboard is probably loading a lot of things without they even queried in the UI, and that could be leading to such high memory usage. This needs to be optimized properly, to enable us to work with large projects in tensorboard. [I have seen bug reports since at least 2017, and it's yet to be resolved].

  2. One of the reasons why we end up with large memory usage is because things like images are written inside the tensorboard logs, and loaded into memory when tensorboard is launched.
    Just consider this alternate approach:

  • Tensorboard doesn't store the images inside its logs. Rather just stores some URLs to the images.
  • When an image is requested, it actually displays those URLs, rather than loading it from memory.

Advantages:

  • Much lesser memory requirement for tensorboard (dynamic loading by loading of URLs).
  • The same image can be re-used multiple times in the interface, without the user having to write the image multiple times to tensorboard.
  • Could also enable custom workflows like, say I want to dynamically view only the misclassifications from class A to class B. And then switch to viewing misclassifications from class A to class C. Writing all of them as images becomes very large in size when we are considering >15-20 classes.
  1. Please start supporting HTML rendering in tensorboard at the least (atleast things like image tags). That way I could just host some images using Python Flask server, and then use tensorboard to display them via links.

The argument about this being a security issue seems unreasonable to me. First of all, who is so much bothered about security when it comes to tensorboard? What we care about is using it to access the progress of our deep learning project.
And secondly, I'm sure it would be possible to make the system quite secure even if you were to enable HTML rendering inside of tensorboard.

  1. Support for displaying tables like confusion matrix (without having to convert them to images).
    Image are huge in size, just provide native support for tables (again, you could reduce your development support by enabling some sort of HTML rendering support inside tensorboard instead).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions