added first pip install version 0.1
This commit is contained in:
parent
102d952043
commit
1e665c4604
|
@ -0,0 +1,4 @@
|
||||||
|
include LICENSE
|
||||||
|
include README.md
|
||||||
|
include requirements.txt
|
||||||
|
recursive-include src/aiia *
|
|
@ -0,0 +1,8 @@
|
||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=42", "wheel"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[tool.black]
|
||||||
|
line-length = 88
|
||||||
|
target-version = ['py37']
|
||||||
|
include = '\.pyi?$'
|
|
@ -0,0 +1,5 @@
|
||||||
|
torch>=4.5.0
|
||||||
|
numpy
|
||||||
|
tqdm
|
||||||
|
pytest
|
||||||
|
pillow
|
|
@ -0,0 +1,26 @@
|
||||||
|
[metadata]
|
||||||
|
name = aiia
|
||||||
|
version = 0.1.0
|
||||||
|
author = Your Name
|
||||||
|
author_email = falko.habel@gmx.de
|
||||||
|
description = AIIA deep learning model implementation
|
||||||
|
long_description = file: README.md
|
||||||
|
long_description_content_type = text/markdown
|
||||||
|
url = https://gitea.fabelous.app/Maschine-Learning/AIIA.git
|
||||||
|
classifiers =
|
||||||
|
Programming Language :: Python :: 3
|
||||||
|
License :: OSI Approved :: MIT License
|
||||||
|
Operating System :: OS Independent
|
||||||
|
|
||||||
|
[options]
|
||||||
|
package_dir =
|
||||||
|
= src
|
||||||
|
packages = find:
|
||||||
|
python_requires = >=3.7
|
||||||
|
install_requires =
|
||||||
|
torch>=1.8.0
|
||||||
|
numpy>=1.19.0
|
||||||
|
tqdm>=4.62.0
|
||||||
|
|
||||||
|
[options.packages.find]
|
||||||
|
where = src
|
|
@ -0,0 +1,25 @@
|
||||||
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name="aiia",
|
||||||
|
version="0.1.0",
|
||||||
|
packages=find_packages(where="src"),
|
||||||
|
package_dir={"": "src"},
|
||||||
|
install_requires=[
|
||||||
|
"torch>=1.8.0",
|
||||||
|
"numpy>=1.19.0",
|
||||||
|
"tqdm>=4.62.0",
|
||||||
|
],
|
||||||
|
author="Falko Habel",
|
||||||
|
author_email="falko.habel@gmx.de",
|
||||||
|
description="AIIA deep learning model implementation",
|
||||||
|
long_description=open("README.md").read(),
|
||||||
|
long_description_content_type="text/markdown",
|
||||||
|
url="https://gitea.fabelous.app/Maschine-Learning/AIIA.git",
|
||||||
|
classifiers=[
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"License :: OSI Approved :: Creative Commons Attribution-NonCommercial 4.0 International",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
],
|
||||||
|
python_requires=">=3.10",
|
||||||
|
)
|
|
@ -1,3 +1,5 @@
|
||||||
from .model import AIIA, AIIABase, AIIAchunked, AIIAExpert, AIIAmoe, AIIArecursive, AIIABaseShared
|
from .model.Model import AIIABase, AIIABaseShared, AIIAchunked, AIIAExpert, AIIAmoe, AIIA, AIIArecursive
|
||||||
from .data import AIIADataLoader
|
from .model.config import AIIAConfig
|
||||||
from .model.config import AIIAConfig
|
from .data.DataLoader import DataLoader
|
||||||
|
|
||||||
|
__version__ = "0.1.0"
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
from .DataLoader import AIIADataLoader
|
from .DataLoader import AIIADataLoader
|
||||||
|
|
||||||
|
__all__ = ["AIIADataLoader"]
|
||||||
|
|
|
@ -223,4 +223,8 @@ class AIIArecursive(AIIA):
|
||||||
processed_patches.append(pp)
|
processed_patches.append(pp)
|
||||||
|
|
||||||
combined_output = torch.mean(torch.stack(processed_patches, dim=0), dim=0)
|
combined_output = torch.mean(torch.stack(processed_patches, dim=0), dim=0)
|
||||||
return combined_output
|
return combined_output
|
||||||
|
|
||||||
|
config = AIIAConfig()
|
||||||
|
model = AIIAmoe(config, num_experts=5)
|
||||||
|
model.save("test")
|
|
@ -1,2 +1,21 @@
|
||||||
|
from .Model import (
|
||||||
|
AIIA,
|
||||||
|
AIIABase,
|
||||||
|
AIIABaseShared,
|
||||||
|
AIIAchunked,
|
||||||
|
AIIAExpert,
|
||||||
|
AIIAmoe,
|
||||||
|
AIIArecursive
|
||||||
|
)
|
||||||
from .config import AIIAConfig
|
from .config import AIIAConfig
|
||||||
from .Model import AIIA, AIIABase, AIIAchunked, AIIAExpert, AIIAmoe, AIIArecursive, AIIABaseShared
|
|
||||||
|
__all__ = [
|
||||||
|
"AIIA",
|
||||||
|
"AIIABase",
|
||||||
|
"AIIABaseShared",
|
||||||
|
"AIIAchunked",
|
||||||
|
"AIIAExpert",
|
||||||
|
"AIIAmoe",
|
||||||
|
"AIIArecursive",
|
||||||
|
"AIIAConfig"
|
||||||
|
]
|
Loading…
Reference in New Issue