Skip to content

Commit

Permalink
ExtractSeqLensJob, init RETURNN logging, default verbosity 4
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Jul 24, 2024
1 parent 99d5104 commit 296fc1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions returnn/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,16 @@ def run(self):

from returnn.config import set_global_config, Config
from returnn.datasets import init_dataset
from returnn.log import log

config = Config()
config.load_file(self.out_returnn_config_file.get_path())
set_global_config(config)

if not config.has("log_verbosity"):
config.typed_dict["log_verbosity"] = 4
log.init_by_config(config)

dataset_dict = config.typed_value("dataset")
assert isinstance(dataset_dict, dict)
dataset = init_dataset(dataset_dict)
Expand Down

0 comments on commit 296fc1b

Please sign in to comment.