diff --git a/minigpt4/common/config.py b/minigpt4/common/config.py index fa3a918..e184b1f 100644 --- a/minigpt4/common/config.py +++ b/minigpt4/common/config.py @@ -71,7 +71,7 @@ class Config: model_config_path = model_cls.default_config_path(model_type=model_type) model_config = OmegaConf.create() - # hiararchy override, customized config > default config + # hierarchy override, customized config > default config model_config = OmegaConf.merge( model_config, OmegaConf.load(model_config_path), @@ -102,7 +102,7 @@ class Config: type=dataset_config_type ) - # hiararchy override, customized config > default config + # hierarchy override, customized config > default config dataset_config = OmegaConf.merge( dataset_config, OmegaConf.load(dataset_config_path), diff --git a/minigpt4/datasets/builders/image_text_pair_builder.py b/minigpt4/datasets/builders/image_text_pair_builder.py index 7f2a980..e5d66b8 100644 --- a/minigpt4/datasets/builders/image_text_pair_builder.py +++ b/minigpt4/datasets/builders/image_text_pair_builder.py @@ -1,5 +1,6 @@ import os import logging +import warnings from minigpt4.common.registry import registry from minigpt4.datasets.builders.base_dataset_builder import BaseDatasetBuilder @@ -90,7 +91,7 @@ class CCSBUAlignBuilder(BaseDatasetBuilder): datasets = dict() if not os.path.exists(storage_path): - warnings.warn("storage path {} does not exist.".format(vis_path)) + warnings.warn("storage path {} does not exist.".format(storage_path)) # create datasets dataset_cls = self.train_dataset_cls