You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove lightgraphs dependency and use Requires.jl ( fix#39 )
* Add Plots support
* Add PyPlot support
* Replace all `log_image(s)` methods with a common one, that internally use all our preprocess machinery (should use it for everything else too)
* move LogGraph to Optional folder
* BugFix: log_***(step=nothing) gave errors
* Update travis to Test on latest julia
* Docs
Copy file name to clipboardExpand all lines: README.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,8 @@ To install run the following command in the julia REPL:
16
16
] add TensorBoardLogger
17
17
```
18
18
19
-
To also enable support for Images, also install `ImageMagick`
19
+
If you need to log Images, you must also install `ImageMagick`
20
+
(on MacOS, you will also need `QuartzImageIO`).
20
21
```
21
22
] add ImageMagick
22
23
```
@@ -34,6 +35,14 @@ logger in Julia:
34
35
- You can set it to be the current logger in a scope with the function [`with_logger`](https://docs.julialang.org/en/v1/stdlib/Logging/index.html#Base.CoreLogging.with_logger)
35
36
- You can combine it with other Loggers using [LoggingExtras.jl](https://github.com/oxinabox/LoggingExtras.jl), so that messages are logged to TensorBoard and to other backends at the same time.
36
37
38
+
You can log to TensorBoard any type. Numeric types will be logged as scalar,
39
+
arrays will be binned into histograms, images and audio will be logged as such,
40
+
and we even support [Plots](https://github.com/JuliaPlots/Plots.jl) and
Copy file name to clipboardExpand all lines: docs/src/index.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,9 @@ To install this Julia package run the following command in the julia REPL:
15
15
```
16
16
17
17
!!! note
18
-
To log images to the *Image* backend of TensorBoard you must also install
19
-
`ImageMagick`. You won't need to import it.
18
+
If you need to log Images, you must also install `ImageMagick`
19
+
(on MacOS, you will also need `QuartzImageIO`).
20
+
You only need to install those dependencies, and you will never need to load them.
20
21
```
21
22
] add ImageMagick
22
23
```
@@ -41,10 +42,17 @@ there already exhist a document at the given path.
41
42
42
43
Once you have created a `TBLogger`, you can use it as you would use any other
43
44
logger in Julia:
44
-
- You can set it to be your global logger with the function [`global_logger`](https://docs.julialang.org/en/v1/stdlib/Logging/index.html#Base.CoreLogging.global_logger)
45
-
- You can set it to be the current logger in a scope with the function [`with_logger`](https://docs.julialang.org/en/v1/stdlib/Logging/index.html#Base.CoreLogging.with_logger)
46
-
- You can combine it with other Loggers using [LoggingExtras.jl](https://github.com/oxinabox/LoggingExtras.jl), so that messages are logged to TensorBoard and to other backends at the same time.
45
+
- You can set it to be your global logger with the function [`global_logger`](https://docs.julialang.org/en/v1/stdlib/Logging/index.html#Base.CoreLogging.global_logger)
46
+
- You can set it to be the current logger in a scope with the function [`with_logger`](https://docs.julialang.org/en/v1/stdlib/Logging/index.html#Base.CoreLogging.with_logger)
47
+
- You can combine it with other Loggers using [LoggingExtras.jl](https://github.com/oxinabox/LoggingExtras.jl), so that messages are logged to TensorBoard and to other backends at the same time.
47
48
49
+
Every `TBLogger` has an internal counter to store the current `step`, which is initially set to `1`. All the data logged with the same `@log` call will be logged with the same step, and then
50
+
it will increment the internal counter by 1.
51
+
52
+
If you want to increase the counter by a different amount, or prevent it from increasing, you can log the additional message
53
+
`log_step_increment=N`. The default behaviour corresponds to `N=1`. If you set `N=0` the internal counter will not be modified.
54
+
55
+
See the example below:
48
56
```julia
49
57
using TensorBoardLogger, Logging, Random
50
58
@@ -92,8 +100,13 @@ how to specify a desired backend refer to [Specifying a backend](@ref).
92
100
If you want to define a new default behaviour for a custom type refer to section
93
101
[Extending TensorBoardLogger](@ref).
94
102
103
+
## Third-party packages
104
+
We also support logging custom types from a the following third-party libraries:
105
+
-[Plots.jl](https://github.com/JuliaPlots/Plots.jl): the `Plots.Plot` type will be rendered to PNG at the resolution specified by the object and logged as an image
106
+
-[PyPlot.jl](https://github.com/JuliaPy/PyPlot.jl): the `PyPlot.Figure` type will be rendered to PNG at the resolution specified by the object and logged as an image
107
+
95
108
## Explicit logging
96
109
97
110
In alternative, you can also log data to TensorBoard through it's functional interface,
98
111
by calling the relevant method with a tag string and the data. For information
99
-
on this interface refer to @ref()...
112
+
on this interface refer to [Explicit interface]@ref()...
0 commit comments