|
|
|
|
|
|
import shutil |
|
|
|
import numpy as np |
|
|
|
import yaml |
|
|
|
import importlib |
|
|
|
from docopt import docopt |
|
|
|
from typing import Any, Callable, Dict, Optional |
|
|
|
|
|
|
|
|
|
|
tc.start_learning(env) |
|
|
|
|
|
|
|
|
|
|
|
def get_tensorboard_file_provider(): |
|
|
|
root_dir = os.path.dirname(importlib.import_module("tensorboard").__file__) |
|
|
|
filename = os.path.join(root_dir, "webfiles.zip") |
|
|
|
return open(filename, "rb") |
|
|
|
|
|
|
|
|
|
|
|
tb = program.TensorBoard( |
|
|
|
default.get_plugins(), program.get_default_assets_zip_provider() |
|
|
|
) |
|
|
|
tb = program.TensorBoard(default.get_plugins(), get_tensorboard_file_provider) |
|
|
|
tb.configure(argv=[None, "--logdir", "./summaries/"]) |
|
|
|
url = tb.launch() |
|
|
|
print("---------------------------------\n") |
|
|
|