Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OvoTools
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林帅浩
OvoTools
Commits
638533e0
Commit
638533e0
authored
Oct 03, 2019
by
Ilya Ovodov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TensorBoardLogger cmd line fixes: abspath and port position
parent
7b2c99c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ignite_tools.py
ovotools/ignite_tools.py
+2
-2
No files found.
ovotools/ignite_tools.py
View file @
638533e0
...
...
@@ -176,8 +176,8 @@ class TensorBoardLogger:
#cmd = r"tensorboard --host 127.0.0.1 --port {port} --logdir {dir}".format(port=port, dir=self.log_dir)
#print(cmd)
#os.popen(cmd)
cmd
=
r'tensorboard --host 127.0.0.1 --
port {port} --logdir ""
'
.
format
(
port
=
port
)
.
split
(
' '
)
cmd
[
-
1
]
=
self
.
log_dir
# can contain spaces
cmd
=
r'tensorboard --host 127.0.0.1 --
logdir "" --port {port}
'
.
format
(
port
=
port
)
.
split
(
' '
)
cmd
[
-
3
]
=
os
.
path
.
abspath
(
self
.
log_dir
)
# log_dir can contain spaces, so need to be set after split
print
(
' '
.
join
(
cmd
))
if
start_it
:
subprocess
.
Popen
(
cmd
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment