[Fix] add import check of multimodal (#352)

This commit is contained in:
Yixiao Fang 2023-09-04 14:41:07 +08:00 committed by GitHub
parent 8774465a8f
commit 2cd994c3d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,9 +8,19 @@ if satisfy_requirement('salesforce-lavis'):
if osp.exists('opencompass/multimodal/models/minigpt_4/MiniGPT-4'):
from .minigpt_4 import * # noqa: F401, F403
from .llama_adapter_v2_multimodal import * # noqa: F401, F403
if osp.exists(
'opencompass/multimodal/models/llama_adapter_v2_multimodal/LLaMA-Adapter' # noqa
):
from .llama_adapter_v2_multimodal import * # noqa: F401, F403
from .llava import * # noqa: F401, F403
from .mplug_owl import * # noqa: F401, F403
if osp.exists('opencompass/multimodal/models/mplug_owl/mPLUG-Owl'):
from .mplug_owl import * # noqa: F401, F403
from .openflamingo import * # noqa: F401, F403
from .otter import * # noqa: F401, F403
if osp.exists('opencompass/multimodal/models/otter/Otter'):
from .otter import * # noqa: F401, F403
from .visualglm import * # noqa: F401, F403