Compare commits
No commits in common. "af8565bc68b37e6be7fe38b5b95120723f3d70e3" and "23cd41d4cf2f98173eef9347984688901d42dfd9" have entirely different histories.
af8565bc68
...
23cd41d4cf
|
@ -1,37 +0,0 @@
|
||||||
name: Run VectorLoader Script
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Explore-Gitea-Actions:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: '3.11.7'
|
|
||||||
|
|
||||||
- name: Clone additional repository
|
|
||||||
run: |
|
|
||||||
git config --global credential.helper cache
|
|
||||||
git clone https://fabel:${{ secrets.CICD }}@gitea.fabelous.app/fabel/VectorLoader.git
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
cd VectorLoader
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements.txt
|
|
||||||
|
|
||||||
- name: Run vectorizing
|
|
||||||
env:
|
|
||||||
VECTORDB_TOKEN: ${{ secrets.VECTORDB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
cd VectorLoader
|
|
||||||
python -m src.run --full
|
|
|
@ -1,37 +0,0 @@
|
||||||
name: Gitea Actions For AIIA
|
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Explore-Gitea-Actions:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.11.7'
|
|
||||||
|
|
||||||
- name: Cache pip and model
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cache/pip
|
|
||||||
./fabel
|
|
||||||
key: ${{ runner.os }}-pip-model-${{ hashFiles('requirements.txt', 'requirements-dev.txt') }}
|
|
||||||
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-model-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements.txt
|
|
||||||
pip install -r requirements-dev.txt
|
|
||||||
pip install -e .
|
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
pytest tests/
|
|
|
@ -1,15 +1,17 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=45", "wheel"]
|
requires = ["setuptools>=45", "wheel"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "aiunn"
|
name = "aiunn"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "Finetuner for image upscaling using AIIA"
|
description = "Finetuner for image upscaling using AIIA"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
license = {file = "LICENSE"}
|
license = {file = "LICENSE"}
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Falko Habel", email = "falko.habel@gmx.de"},
|
{name = "Falko Habel", email = "falko.habel@gmx.de"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
"Homepage"="https://gitea.fabelous.app/Machine-Learning/aiuNN"
|
"Homepage" = "https://gitea.fabelous.app/Machine-Learning/aiuNN"
|
|
@ -2,5 +2,5 @@ torch
|
||||||
aiia
|
aiia
|
||||||
pillow
|
pillow
|
||||||
torchvision
|
torchvision
|
||||||
scikit-learn
|
sklearn
|
||||||
git+https://gitea.fabelous.app/Machine-Learning/AIIA.git
|
https://gitea.fabelous.app/Machine-Learning/AIIA.git
|
11
setup.py
11
setup.py
|
@ -6,14 +6,9 @@ setup(
|
||||||
packages=find_packages(where="src"),
|
packages=find_packages(where="src"),
|
||||||
package_dir={"": "src"},
|
package_dir={"": "src"},
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"torch",
|
line.strip()
|
||||||
"aiia",
|
for line in open("requirements.txt")
|
||||||
"pillow",
|
if line.strip() and not line.startswith("#")
|
||||||
"torchvision",
|
|
||||||
"scikit-learn",
|
|
||||||
],
|
|
||||||
dependency_links=[
|
|
||||||
"git+https://gitea.fabelous.app/Machine-Learning/AIIA.git#egg=aiia"
|
|
||||||
],
|
],
|
||||||
python_requires=">=3.10",
|
python_requires=">=3.10",
|
||||||
)
|
)
|
|
@ -149,8 +149,8 @@ if __name__ == "__main__":
|
||||||
upsampler = aiuNN(base_model, config=ai_config)
|
upsampler = aiuNN(base_model, config=ai_config)
|
||||||
|
|
||||||
# Save the model (both configuration and weights).
|
# Save the model (both configuration and weights).
|
||||||
upsampler.save("aiunn")
|
upsampler.save("hehe")
|
||||||
|
|
||||||
# Now load using the overridden load method; this will load the complete model.
|
# Now load using the overridden load method; this will load the complete model.
|
||||||
upsampler_loaded = aiuNN.load("aiunn", precision="bf16")
|
upsampler_loaded = aiuNN.load("hehe", precision="bf16")
|
||||||
print("Updated configuration:", upsampler_loaded.config.__dict__)
|
print("Updated configuration:", upsampler_loaded.config.__dict__)
|
||||||
|
|
Loading…
Reference in New Issue