CarlosMalaga
commited on
Update relik/inference/annotator.py
Browse files
relik/inference/annotator.py
CHANGED
@@ -7,7 +7,6 @@ from typing import Any, Dict, List, Optional, Union
|
|
7 |
import hydra
|
8 |
import torch
|
9 |
from omegaconf import DictConfig, OmegaConf
|
10 |
-
from pprintpp import pformat
|
11 |
|
12 |
from relik.inference.data.splitters.blank_sentence_splitter import BlankSentenceSplitter
|
13 |
from relik.common.log import get_logger
|
@@ -621,7 +620,6 @@ class Relik:
|
|
621 |
config = OmegaConf.merge(config, OmegaConf.create(kwargs))
|
622 |
# do we want to print the config? I like it
|
623 |
logger.info(f"Loading Relik from {model_name_or_dir}")
|
624 |
-
logger.info(pformat(OmegaConf.to_container(config)))
|
625 |
|
626 |
# load relik from config
|
627 |
relik = hydra.utils.instantiate(config, _recursive_=False, *args)
|
@@ -823,8 +821,7 @@ class Relik:
|
|
823 |
config_file_name = config_file_name or CONFIG_NAME
|
824 |
|
825 |
logger.info(f"Saving relik config to {output_dir / config_file_name}")
|
826 |
-
|
827 |
-
logger.info(pformat(config))
|
828 |
OmegaConf.save(config, output_dir / config_file_name)
|
829 |
|
830 |
if push_to_hub:
|
|
|
7 |
import hydra
|
8 |
import torch
|
9 |
from omegaconf import DictConfig, OmegaConf
|
|
|
10 |
|
11 |
from relik.inference.data.splitters.blank_sentence_splitter import BlankSentenceSplitter
|
12 |
from relik.common.log import get_logger
|
|
|
620 |
config = OmegaConf.merge(config, OmegaConf.create(kwargs))
|
621 |
# do we want to print the config? I like it
|
622 |
logger.info(f"Loading Relik from {model_name_or_dir}")
|
|
|
623 |
|
624 |
# load relik from config
|
625 |
relik = hydra.utils.instantiate(config, _recursive_=False, *args)
|
|
|
821 |
config_file_name = config_file_name or CONFIG_NAME
|
822 |
|
823 |
logger.info(f"Saving relik config to {output_dir / config_file_name}")
|
824 |
+
|
|
|
825 |
OmegaConf.save(config, output_dir / config_file_name)
|
826 |
|
827 |
if push_to_hub:
|