Skip to content

Commit

Permalink
set visdom windows opts only once
Browse files Browse the repository at this point in the history
  • Loading branch information
lberrada committed Feb 10, 2018
1 parent e6d0b3f commit 0730a25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logger/xp.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ def to_visdom(self, visdom_opts=None, xlabel=None):
self.plotter = Plotter(self, visdom_opts, xlabel)
# restore visdom options that have been saved (if experiment loaded from file)
if hasattr(self, 'visdom_win_opts'):
for (name, opts) in self.visdom_win_opts.items():
windows_opts = self.__dict__.pop('visdom_win_opts')
for (name, opts) in windows_opts.items():
self.plotter.set_win_opts(name, opts)
self.plotter.plot_xp(self)

Expand Down

0 comments on commit 0730a25

Please sign in to comment.