diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..8d22caa --- /dev/null +++ b/__init__.py @@ -0,0 +1 @@ +from .minigpt4 import * \ No newline at end of file diff --git a/minigpt4.egg-info/PKG-INFO b/minigpt4.egg-info/PKG-INFO new file mode 100644 index 0000000..3d02e69 --- /dev/null +++ b/minigpt4.egg-info/PKG-INFO @@ -0,0 +1,8 @@ +Metadata-Version: 2.1 +Name: minigpt4 +Version: 0.1 +Summary: The package for minigpt4 +Author: YingzhePeng +Author-email: yingzhepeng@foxmail.com +License-File: LICENSE.md +License-File: LICENSE_Lavis.md diff --git a/minigpt4.egg-info/SOURCES.txt b/minigpt4.egg-info/SOURCES.txt new file mode 100644 index 0000000..8014fc6 --- /dev/null +++ b/minigpt4.egg-info/SOURCES.txt @@ -0,0 +1,47 @@ +LICENSE.md +LICENSE_Lavis.md +README.md +setup.py +minigpt4/__init__.py +minigpt4.egg-info/PKG-INFO +minigpt4.egg-info/SOURCES.txt +minigpt4.egg-info/dependency_links.txt +minigpt4.egg-info/top_level.txt +minigpt4/common/__init__.py +minigpt4/common/config.py +minigpt4/common/dist_utils.py +minigpt4/common/gradcam.py +minigpt4/common/logger.py +minigpt4/common/optims.py +minigpt4/common/registry.py +minigpt4/common/utils.py +minigpt4/conversation/__init__.py +minigpt4/conversation/conversation.py +minigpt4/datasets/__init__.py +minigpt4/datasets/data_utils.py +minigpt4/datasets/builders/__init__.py +minigpt4/datasets/builders/base_dataset_builder.py +minigpt4/datasets/builders/image_text_pair_builder.py +minigpt4/datasets/datasets/__init__.py +minigpt4/datasets/datasets/base_dataset.py +minigpt4/datasets/datasets/caption_datasets.py +minigpt4/datasets/datasets/cc_sbu_dataset.py +minigpt4/datasets/datasets/dataloader_utils.py +minigpt4/datasets/datasets/laion_dataset.py +minigpt4/models/Qformer.py +minigpt4/models/__init__.py +minigpt4/models/base_model.py +minigpt4/models/blip2.py +minigpt4/models/blip2_outputs.py +minigpt4/models/eva_vit.py +minigpt4/models/mini_gpt4.py +minigpt4/models/modeling_llama.py +minigpt4/processors/__init__.py +minigpt4/processors/base_processor.py +minigpt4/processors/blip_processors.py +minigpt4/processors/randaugment.py +minigpt4/runners/__init__.py +minigpt4/runners/runner_base.py +minigpt4/tasks/__init__.py +minigpt4/tasks/base_task.py +minigpt4/tasks/image_text_pretrain.py \ No newline at end of file diff --git a/minigpt4.egg-info/dependency_links.txt b/minigpt4.egg-info/dependency_links.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/minigpt4.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/minigpt4.egg-info/top_level.txt b/minigpt4.egg-info/top_level.txt new file mode 100644 index 0000000..aa906bf --- /dev/null +++ b/minigpt4.egg-info/top_level.txt @@ -0,0 +1 @@ +minigpt4 diff --git a/minigpt4/__init__.py b/minigpt4/__init__.py index bb31f42..38d4d96 100644 --- a/minigpt4/__init__.py +++ b/minigpt4/__init__.py @@ -10,12 +10,12 @@ import sys from omegaconf import OmegaConf -from minigpt4.common.registry import registry +from .common.registry import registry -from minigpt4.datasets.builders import * -from minigpt4.models import * -from minigpt4.processors import * -from minigpt4.tasks import * +from .datasets.builders import * +from .models import * +from .processors import * +from .tasks import * root_dir = os.path.dirname(os.path.abspath(__file__)) diff --git a/minigpt4/__pycache__/__init__.cpython-38.pyc b/minigpt4/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..07acc90 Binary files /dev/null and b/minigpt4/__pycache__/__init__.cpython-38.pyc differ diff --git a/minigpt4/common/__pycache__/__init__.cpython-38.pyc b/minigpt4/common/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..a4804cd Binary files /dev/null and b/minigpt4/common/__pycache__/__init__.cpython-38.pyc differ diff --git a/minigpt4/common/__pycache__/config.cpython-38.pyc b/minigpt4/common/__pycache__/config.cpython-38.pyc new file mode 100644 index 0000000..628020b Binary files /dev/null and b/minigpt4/common/__pycache__/config.cpython-38.pyc differ diff --git a/minigpt4/common/__pycache__/dist_utils.cpython-38.pyc b/minigpt4/common/__pycache__/dist_utils.cpython-38.pyc new file mode 100644 index 0000000..df8f571 Binary files /dev/null and b/minigpt4/common/__pycache__/dist_utils.cpython-38.pyc differ diff --git a/minigpt4/common/__pycache__/logger.cpython-38.pyc b/minigpt4/common/__pycache__/logger.cpython-38.pyc new file mode 100644 index 0000000..1766ed3 Binary files /dev/null and b/minigpt4/common/__pycache__/logger.cpython-38.pyc differ diff --git a/minigpt4/common/__pycache__/registry.cpython-38.pyc b/minigpt4/common/__pycache__/registry.cpython-38.pyc new file mode 100644 index 0000000..e113fb1 Binary files /dev/null and b/minigpt4/common/__pycache__/registry.cpython-38.pyc differ diff --git a/minigpt4/common/__pycache__/utils.cpython-38.pyc b/minigpt4/common/__pycache__/utils.cpython-38.pyc new file mode 100644 index 0000000..31c0dff Binary files /dev/null and b/minigpt4/common/__pycache__/utils.cpython-38.pyc differ diff --git a/minigpt4/conversation/__pycache__/__init__.cpython-38.pyc b/minigpt4/conversation/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..b07af11 Binary files /dev/null and b/minigpt4/conversation/__pycache__/__init__.cpython-38.pyc differ diff --git a/minigpt4/conversation/__pycache__/conversation.cpython-38.pyc b/minigpt4/conversation/__pycache__/conversation.cpython-38.pyc new file mode 100644 index 0000000..fe8a4ea Binary files /dev/null and b/minigpt4/conversation/__pycache__/conversation.cpython-38.pyc differ diff --git a/minigpt4/datasets/__pycache__/__init__.cpython-38.pyc b/minigpt4/datasets/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..55e5768 Binary files /dev/null and b/minigpt4/datasets/__pycache__/__init__.cpython-38.pyc differ diff --git a/minigpt4/datasets/__pycache__/data_utils.cpython-38.pyc b/minigpt4/datasets/__pycache__/data_utils.cpython-38.pyc new file mode 100644 index 0000000..eade8a8 Binary files /dev/null and b/minigpt4/datasets/__pycache__/data_utils.cpython-38.pyc differ diff --git a/minigpt4/datasets/builders/__pycache__/__init__.cpython-38.pyc b/minigpt4/datasets/builders/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..76acbc2 Binary files /dev/null and b/minigpt4/datasets/builders/__pycache__/__init__.cpython-38.pyc differ diff --git a/minigpt4/datasets/builders/__pycache__/base_dataset_builder.cpython-38.pyc b/minigpt4/datasets/builders/__pycache__/base_dataset_builder.cpython-38.pyc new file mode 100644 index 0000000..e82e43f Binary files /dev/null and b/minigpt4/datasets/builders/__pycache__/base_dataset_builder.cpython-38.pyc differ diff --git a/minigpt4/datasets/builders/__pycache__/image_text_pair_builder.cpython-38.pyc b/minigpt4/datasets/builders/__pycache__/image_text_pair_builder.cpython-38.pyc new file mode 100644 index 0000000..60ec362 Binary files /dev/null and b/minigpt4/datasets/builders/__pycache__/image_text_pair_builder.cpython-38.pyc differ diff --git a/minigpt4/datasets/datasets/__pycache__/__init__.cpython-38.pyc b/minigpt4/datasets/datasets/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..050843f Binary files /dev/null and b/minigpt4/datasets/datasets/__pycache__/__init__.cpython-38.pyc differ diff --git a/minigpt4/datasets/datasets/__pycache__/base_dataset.cpython-38.pyc b/minigpt4/datasets/datasets/__pycache__/base_dataset.cpython-38.pyc new file mode 100644 index 0000000..1a60b36 Binary files /dev/null and b/minigpt4/datasets/datasets/__pycache__/base_dataset.cpython-38.pyc differ diff --git a/minigpt4/datasets/datasets/__pycache__/caption_datasets.cpython-38.pyc b/minigpt4/datasets/datasets/__pycache__/caption_datasets.cpython-38.pyc new file mode 100644 index 0000000..376aaf7 Binary files /dev/null and b/minigpt4/datasets/datasets/__pycache__/caption_datasets.cpython-38.pyc differ diff --git a/minigpt4/datasets/datasets/__pycache__/cc_sbu_dataset.cpython-38.pyc b/minigpt4/datasets/datasets/__pycache__/cc_sbu_dataset.cpython-38.pyc new file mode 100644 index 0000000..4dad883 Binary files /dev/null and b/minigpt4/datasets/datasets/__pycache__/cc_sbu_dataset.cpython-38.pyc differ diff --git a/minigpt4/datasets/datasets/__pycache__/laion_dataset.cpython-38.pyc b/minigpt4/datasets/datasets/__pycache__/laion_dataset.cpython-38.pyc new file mode 100644 index 0000000..9083da4 Binary files /dev/null and b/minigpt4/datasets/datasets/__pycache__/laion_dataset.cpython-38.pyc differ diff --git a/minigpt4/models/__pycache__/Qformer.cpython-38.pyc b/minigpt4/models/__pycache__/Qformer.cpython-38.pyc new file mode 100644 index 0000000..874eb6d Binary files /dev/null and b/minigpt4/models/__pycache__/Qformer.cpython-38.pyc differ diff --git a/minigpt4/models/__pycache__/__init__.cpython-38.pyc b/minigpt4/models/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..5e36014 Binary files /dev/null and b/minigpt4/models/__pycache__/__init__.cpython-38.pyc differ diff --git a/minigpt4/models/__pycache__/base_model.cpython-38.pyc b/minigpt4/models/__pycache__/base_model.cpython-38.pyc new file mode 100644 index 0000000..f859dee Binary files /dev/null and b/minigpt4/models/__pycache__/base_model.cpython-38.pyc differ diff --git a/minigpt4/models/__pycache__/blip2.cpython-38.pyc b/minigpt4/models/__pycache__/blip2.cpython-38.pyc new file mode 100644 index 0000000..1896352 Binary files /dev/null and b/minigpt4/models/__pycache__/blip2.cpython-38.pyc differ diff --git a/minigpt4/models/__pycache__/eva_vit.cpython-38.pyc b/minigpt4/models/__pycache__/eva_vit.cpython-38.pyc new file mode 100644 index 0000000..8a9405b Binary files /dev/null and b/minigpt4/models/__pycache__/eva_vit.cpython-38.pyc differ diff --git a/minigpt4/models/__pycache__/mini_gpt4.cpython-38.pyc b/minigpt4/models/__pycache__/mini_gpt4.cpython-38.pyc new file mode 100644 index 0000000..9a47ab8 Binary files /dev/null and b/minigpt4/models/__pycache__/mini_gpt4.cpython-38.pyc differ diff --git a/minigpt4/models/__pycache__/modeling_llama.cpython-38.pyc b/minigpt4/models/__pycache__/modeling_llama.cpython-38.pyc new file mode 100644 index 0000000..92dfbc8 Binary files /dev/null and b/minigpt4/models/__pycache__/modeling_llama.cpython-38.pyc differ diff --git a/minigpt4/processors/__pycache__/__init__.cpython-38.pyc b/minigpt4/processors/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..c0f8a3d Binary files /dev/null and b/minigpt4/processors/__pycache__/__init__.cpython-38.pyc differ diff --git a/minigpt4/processors/__pycache__/base_processor.cpython-38.pyc b/minigpt4/processors/__pycache__/base_processor.cpython-38.pyc new file mode 100644 index 0000000..ad2283a Binary files /dev/null and b/minigpt4/processors/__pycache__/base_processor.cpython-38.pyc differ diff --git a/minigpt4/processors/__pycache__/blip_processors.cpython-38.pyc b/minigpt4/processors/__pycache__/blip_processors.cpython-38.pyc new file mode 100644 index 0000000..ee93fd8 Binary files /dev/null and b/minigpt4/processors/__pycache__/blip_processors.cpython-38.pyc differ diff --git a/minigpt4/processors/__pycache__/randaugment.cpython-38.pyc b/minigpt4/processors/__pycache__/randaugment.cpython-38.pyc new file mode 100644 index 0000000..7f33546 Binary files /dev/null and b/minigpt4/processors/__pycache__/randaugment.cpython-38.pyc differ diff --git a/minigpt4/tasks/__pycache__/__init__.cpython-38.pyc b/minigpt4/tasks/__pycache__/__init__.cpython-38.pyc new file mode 100644 index 0000000..35225b6 Binary files /dev/null and b/minigpt4/tasks/__pycache__/__init__.cpython-38.pyc differ diff --git a/minigpt4/tasks/__pycache__/base_task.cpython-38.pyc b/minigpt4/tasks/__pycache__/base_task.cpython-38.pyc new file mode 100644 index 0000000..ecb3ce6 Binary files /dev/null and b/minigpt4/tasks/__pycache__/base_task.cpython-38.pyc differ diff --git a/minigpt4/tasks/__pycache__/image_text_pretrain.cpython-38.pyc b/minigpt4/tasks/__pycache__/image_text_pretrain.cpython-38.pyc new file mode 100644 index 0000000..33061a5 Binary files /dev/null and b/minigpt4/tasks/__pycache__/image_text_pretrain.cpython-38.pyc differ diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c5d8aad --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +from setuptools import setup, find_packages + + +setup( + name='minigpt4', + version='0.1', + description='The package for minigpt4', + author='YingzhePeng', + author_email='yingzhepeng@foxmail.com', + packages=find_packages() +) \ No newline at end of file