fix an import bug in image_text_pair_builder.py

This commit is contained in:
Deyao Zhu 2023-04-17 16:57:20 +03:00
parent b76d5c5a50
commit 3c9d321b79
2 changed files with 4 additions and 3 deletions

View File

@ -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),

View File

@ -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