forked from qoherent/modrec-workflow
configured workflow files to run all 3 steps
This commit is contained in:
parent
ff3d45653d
commit
3c7ba8dd99
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -2,3 +2,7 @@
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
*.h5
|
||||||
|
*.ckpt
|
||||||
|
*.ipynb
|
||||||
|
*.onnx
|
|
@ -39,20 +39,20 @@ jobs:
|
||||||
|
|
||||||
- name: 1. Build HDF5 Dataset
|
- name: 1. Build HDF5 Dataset
|
||||||
run: |
|
run: |
|
||||||
# mkdir -p data/dataset
|
mkdir -p data/dataset
|
||||||
PYTHONPATH=. python data/scripts/produce_dataset.py
|
PYTHONPATH=. python data/scripts/produce_dataset.py
|
||||||
echo "datasets produced successfully"
|
echo "datasets produced successfully"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: 2. Train Model
|
- name: 2. Train Model
|
||||||
run: |
|
run: |
|
||||||
|
PYTHONPATH=. python data/training/train.py
|
||||||
echo "training model"
|
echo "training model"
|
||||||
# Placeholder
|
|
||||||
|
|
||||||
- name: 3. Build inference app
|
- name: 3. Build inference app
|
||||||
run: |
|
run: |
|
||||||
|
PYTHONPATH=. python convert_to_onnx.py
|
||||||
echo "building inference app"
|
echo "building inference app"
|
||||||
# Placeholder
|
|
||||||
|
|
||||||
- name: Upload Dataset Artifacts
|
- name: Upload Dataset Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
@ -60,15 +60,15 @@ jobs:
|
||||||
name: ria-dataset
|
name: ria-dataset
|
||||||
path: data/dataset/**
|
path: data/dataset/**
|
||||||
|
|
||||||
# - name: Upload Checkpoints
|
- name: Upload Checkpoints
|
||||||
# uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
# with:
|
with:
|
||||||
# name: ria-checkpoints
|
name: ria-checkpoints
|
||||||
# path: checkpoints/**
|
path: checkpoint_files/inference_recognition_model.ckpt
|
||||||
|
|
||||||
|
|
||||||
# - name: Upload Inference App
|
- name: Upload Inference App
|
||||||
# uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
# with:
|
with:
|
||||||
# name: ria-demo-app
|
name: ria-demo-app
|
||||||
# path: dist/**
|
path: onnx_files/inference_recognition_model.onnx
|
|
@ -15,13 +15,13 @@ training:
|
||||||
batch_size: 64
|
batch_size: 64
|
||||||
epochs: 50
|
epochs: 50
|
||||||
learning_rate: 0.001
|
learning_rate: 0.001
|
||||||
checkpoint_path: checkpoints/model.ckpt
|
checkpoint_path: checkpoints/inference_recognition_model.ckpt
|
||||||
use_gpu: true
|
use_gpu: true
|
||||||
|
|
||||||
inference:
|
inference:
|
||||||
model_path: checkpoints/model.ckpt
|
model_path: checkpoints/inference_recognition_model.ckpt
|
||||||
num_classes: 10
|
num_classes: 4
|
||||||
output_path: results/output.json
|
output_path: onnx_files/inference_recognition_model.onnx
|
||||||
|
|
||||||
app:
|
app:
|
||||||
build_dir: dist
|
build_dir: dist
|
|
@ -1,4 +1,12 @@
|
||||||
h5py
|
h5py==3.13.0
|
||||||
numpy
|
lightning==2.5.1.post0
|
||||||
./wheel/utils-0.1.2.dev0-py3-none-any.whl
|
matplotlib==3.10.3
|
||||||
|
numpy==2.2.6
|
||||||
|
PyYAML==6.0.2
|
||||||
|
PyYAML==6.0.2
|
||||||
|
scikit_learn==1.6.1
|
||||||
|
timm==1.0.15
|
||||||
|
torch==2.7.0
|
||||||
|
utils==1.0.2
|
||||||
|
onnx==1.18.0
|
||||||
|
./wheel/utils-0.1.2.dev0-py3-none-any.whl
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user