Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Docs #78

Merged
merged 240 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
240 commits
Select commit Hold shift + click to select a range
6705676
Merge pull request #35 from FR-DC/0.0.7
Eve-ning Dec 21, 2023
a46e072
Merge pull request #40 from FR-DC/refactor-dataset
Eve-ning Dec 29, 2023
61093f7
Merge branch 'main' into 0.0.8
Eve-ning Dec 29, 2023
3289d49
Implement Stratified Sampling
Eve-ning Dec 29, 2023
fdfa17a
Add test for Stratified Sampling
Eve-ning Dec 29, 2023
349e7cd
Implement Stratified Sampling on DM
Eve-ning Jan 2, 2024
dc05b35
Allow Stratified Sampling for arbitrary seq types
Eve-ning Jan 2, 2024
a8dcafc
Fix missing imports for pred and plot
Eve-ning Jan 2, 2024
e6f6a9c
Change test to use str list
Eve-ning Jan 2, 2024
86d11df
Implement W&B vis of label spread
Eve-ning Jan 2, 2024
a355c39
Clean up train.py
Eve-ning Jan 2, 2024
dff8378
Make W&B Watch model
Eve-ning Jan 2, 2024
3bb5b6f
Merge pull request #42 from FR-DC/frml-102
Eve-ning Jan 2, 2024
c825f8c
Merge pull request #43 from FR-DC/FRML-81
Eve-ning Jan 2, 2024
53d38e5
Add warning on Label Studio connection issue
Eve-ning Jan 8, 2024
74b15c0
Add dumping script
Eve-ning Jan 8, 2024
13a6118
Update .gitignore
Eve-ning Jan 8, 2024
aeca556
Mount backups to host
Eve-ning Jan 8, 2024
54e214c
Merge pull request #44 from FR-DC/frml-97
Eve-ning Jan 8, 2024
fb93890
Fix issue with Label Studio being None exception
Eve-ning Jan 8, 2024
d96030d
Minor Black formatting
Eve-ning Jan 8, 2024
3794501
Fix issue with WandB hist logger too many bins
Eve-ning Jan 8, 2024
c8b050a
Fix issue with redundant initializing wandb
Eve-ning Jan 8, 2024
c2c48b3
Merge pull request #45 from FR-DC/frml-107
Eve-ning Jan 8, 2024
ed10c7a
Merge pull request #41 from FR-DC/0.0.8
Eve-ning Jan 22, 2024
f43e1eb
Fix temp conflict
Eve-ning Feb 14, 2024
1691608
Merge branch 'main' of https://github.com/FR-DC/FRDC-ML
Eve-ning Feb 14, 2024
ffc3fda
Resolve preset conflict
Eve-ning Feb 14, 2024
cad55a3
Add dotenv dep
Eve-ning Feb 14, 2024
f87471c
Add loading of .env via conf
Eve-ning Feb 14, 2024
b5b9e77
Rename polycrop and allow of value setting
Eve-ning Feb 14, 2024
b448cab
Add test for polycrop
Eve-ning Feb 14, 2024
7892492
Add rot as aug
Eve-ning Feb 14, 2024
416ec20
Merge pull request #46 from FR-DC/FRML-114
Eve-ning Feb 14, 2024
75e4588
Merge branch 'main' into 0.0.10
Eve-ning Feb 14, 2024
7dbc965
Fix issue with InceptionV3 only using RGB
Eve-ning Feb 14, 2024
d73c090
Merge pull request #48 from FR-DC/FRML-115
Eve-ning Feb 14, 2024
c5dc148
Fix issue with casuarina dataset incorrect dir
Eve-ning Feb 14, 2024
66df406
Merge pull request #49 from FR-DC/FRML-116
Eve-ning Feb 14, 2024
745c7a7
Fix issue with missing in_channels
Eve-ning Feb 15, 2024
d11452d
Adapt InceptionV3 to use multi-channels
Eve-ning Feb 15, 2024
1fa29e1
Disallow arbitrary channels with in_channel specified
Eve-ning Feb 15, 2024
f205a25
Bump gitpython from 3.1.40 to 3.1.41
dependabot[bot] Feb 15, 2024
d1ff70e
Bump pillow from 10.1.0 to 10.2.0
dependabot[bot] Feb 15, 2024
4fd81fe
Add train accuracy tracking
Eve-ning Feb 15, 2024
f02e4a7
Merge branch '0.0.10' into FRML-117
Eve-ning Feb 15, 2024
1c43769
Merge branch '0.0.10' into FRML-118
Eve-ning Feb 15, 2024
46adb35
Merge pull request #52 from FR-DC/FRML-117
Eve-ning Feb 15, 2024
6ac2841
Merge pull request #53 from FR-DC/FRML-118
Eve-ning Feb 15, 2024
37a5649
Improve explainability of adapter
Eve-ning Feb 15, 2024
74244f7
Merge branch '0.0.10' into FRML-117
Eve-ning Feb 15, 2024
0e080ee
Fix missing kernel size and stride spec
Eve-ning Feb 15, 2024
91a4e34
Dynamically fetch the kernel and stride
Eve-ning Feb 15, 2024
5493815
Merge branch 'FRML-117' of https://github.com/FR-DC/FRDC-ML into FRML…
Eve-ning Feb 15, 2024
48fb402
Fix bad access to conv layer
Eve-ning Feb 15, 2024
d5c4e67
Lint
Eve-ning Feb 15, 2024
ef8daff
Merge pull request #54 from FR-DC/FRML-117
Eve-ning Feb 15, 2024
0db79b9
Remove ReLU from first layer
Eve-ning Feb 15, 2024
eef89bf
Merge branch '0.0.10' into dependabot/pip/pillow-10.2.0
Eve-ning Feb 15, 2024
cde52a5
Revert "Remove ReLU from first layer"
Eve-ning Feb 15, 2024
6b44677
Merge branch '0.0.10' into dependabot/pip/gitpython-3.1.41
Eve-ning Feb 15, 2024
803ff9a
Merge pull request #50 from FR-DC/dependabot/pip/gitpython-3.1.41
Eve-ning Feb 15, 2024
2873d2f
Merge pull request #51 from FR-DC/dependabot/pip/pillow-10.2.0
Eve-ning Feb 15, 2024
942e7d5
Create consistency.ipynb
Eve-ning Feb 20, 2024
b2df562
Update consistency.ipynb
Eve-ning Feb 21, 2024
4a179c0
Make Standard Scaler fit on segments only
Eve-ning Feb 21, 2024
2765a59
Expose ImageNet Scaling option
Eve-ning Feb 21, 2024
b5783da
Format variable names
Eve-ning Feb 21, 2024
594f2a9
Deprecate verbose wandb helper class
Eve-ning Feb 21, 2024
33286c0
Remove unused val_iters arg
Eve-ning Feb 21, 2024
0afe80c
Remove unused val iters args
Eve-ning Feb 21, 2024
a5a008b
Unfreeze inception for better performance
Eve-ning Feb 21, 2024
6d4ba32
Disable wandb during tests
Eve-ning Feb 21, 2024
33b9108
Fix incorrect loss name index
Eve-ning Feb 21, 2024
b74c406
Fix uninitialized unl for supervised learning
Eve-ning Feb 21, 2024
9d95948
Fix imagenet_scaling not used
Eve-ning Feb 21, 2024
66bb6ca
Simplify prediction function
Eve-ning Feb 21, 2024
555d812
Make augmentation size customizable
Eve-ning Feb 21, 2024
b3e805c
Swap to EfficientNet & Update aug params
Eve-ning Feb 21, 2024
b616d42
Create efficientnetb1.py
Eve-ning Feb 21, 2024
b577933
Reduce to 1 Layer
Eve-ning Feb 21, 2024
6cdfb4f
Merge pull request #55 from FR-DC/FRML-119
Eve-ning Feb 21, 2024
c20c67e
Merge branch '0.0.10' into FRRD-60
Eve-ning Feb 21, 2024
f5724d4
Merge pull request #57 from FR-DC/FRML-120
Eve-ning Feb 21, 2024
f47c70d
Merge branch '0.0.10' into FRRD-60
Eve-ning Feb 21, 2024
0755316
Update consistency
Eve-ning Feb 22, 2024
37fe07c
Update consistency.ipynb
Eve-ning Feb 22, 2024
3e8382b
Add section about a const dataset
Eve-ning Feb 22, 2024
b1e5f22
Merge pull request #56 from FR-DC/FRRD-60
Eve-ning Feb 26, 2024
94d6190
Merge pull request #47 from FR-DC/0.0.10
Eve-ning Feb 26, 2024
da2d18f
Move notebooks to separate folder
Eve-ning Feb 26, 2024
c89c1a0
Merge branch 'main' into 0.0.11
Eve-ning Feb 26, 2024
3709485
Add circumvention for multiple annots & bad labs
Eve-ning Mar 25, 2024
59d7557
Merge pull request #59 from FR-DC/FRML-128
Eve-ning Mar 25, 2024
fc468d7
Decouple db from local server
Eve-ning Mar 29, 2024
f01cca8
Add Terraform Ignores
Eve-ning Mar 29, 2024
f6eb097
Fix issue with ARGs not exported
Eve-ning Mar 29, 2024
ecc5211
Dynamically retrieve user and host from terraform
Eve-ning Mar 29, 2024
7b3bff5
Document deployment strategy
Eve-ning Mar 29, 2024
7b16c30
Update output naming
Eve-ning Mar 29, 2024
1a17ea8
Define TF Vars
Eve-ning Mar 29, 2024
d1d9f47
Add supabase provider
Eve-ning Mar 29, 2024
83b9058
Add lock file
Eve-ning Mar 29, 2024
ce9e15f
Add common commands for documentation
Eve-ning Mar 29, 2024
f3bd66a
Create docker build
Eve-ning Apr 1, 2024
b360303
Change image name
Eve-ning Apr 1, 2024
473b42d
Remove unused build sh
Eve-ning Apr 1, 2024
e4b8773
Update to only build if Dockerfile changes
Eve-ning Apr 1, 2024
8c181c8
Allow manual running of workflow
Eve-ning Apr 1, 2024
9ebd8e2
Force build
Eve-ning Apr 1, 2024
5618ce9
Update build-ls-image.yml
Eve-ning Apr 1, 2024
cfddd80
Update build-ls-image.yml
Eve-ning Apr 1, 2024
43153dc
Fix failed image build
Eve-ning Apr 1, 2024
20a2ded
Create run.sh for booting server locally
Eve-ning Apr 1, 2024
c94ee29
Make all files LF
Eve-ning Apr 2, 2024
d73a2b2
Organize DB TF files
Eve-ning Apr 2, 2024
592ef39
Add GCP VM
Eve-ning Apr 2, 2024
13877eb
Update .terraform.lock.hcl
Eve-ning Apr 2, 2024
b8e3554
Prevent accidental shell expansion split
Eve-ning Apr 2, 2024
f7554db
Prevent Python test for non-py changes
Eve-ning Apr 2, 2024
cb786b1
Remove LS Password
Eve-ning Apr 2, 2024
834bc7c
Format Terraform files
Eve-ning Apr 2, 2024
3eab356
Remove excess comments for DockerFile
Eve-ning Apr 2, 2024
60868ca
Fix incorrect file name
Eve-ning Apr 2, 2024
a8da1c1
Change Task Name
Eve-ning Apr 2, 2024
be78275
Remove unused env example and add tf env example
Eve-ning Apr 2, 2024
1fe30a3
Delete README.md
Eve-ning Apr 2, 2024
8ed3087
Fix missing machine type spec
Eve-ning Apr 2, 2024
6f07d93
Rename file to reflect intention better
Eve-ning Apr 2, 2024
9856057
Ignore Jupyter in linguist
Eve-ning Apr 2, 2024
a392354
Merge branch '0.0.11' into terraform
Eve-ning Apr 2, 2024
ea7bfeb
Add interface for LS username and pw
Eve-ning Apr 6, 2024
3e51487
Expose resource names as var
Eve-ning Apr 6, 2024
091cea2
Implement static ext IP
Eve-ning Apr 6, 2024
ce81290
Prevent DB from destroying accidentally
Eve-ning Apr 6, 2024
cf944d4
Update example for tf secrets
Eve-ning Apr 6, 2024
ed8bbca
Set imports into another file
Eve-ning Apr 6, 2024
63197d1
Improve naming scheme for variables
Eve-ning Apr 6, 2024
fc76f16
Merge pull request #60 from FR-DC/terraform
Eve-ning May 21, 2024
96abc8b
Merge pull request #58 from FR-DC/0.0.11
Eve-ning May 21, 2024
724d6d0
Factor out static methods from mixmatch
Eve-ning May 23, 2024
3933597
Extract out functions from preprocessing step
Eve-ning May 23, 2024
5492d33
Remove redundant .long() call
Eve-ning May 23, 2024
49ea138
Deprecate InceptionV3
Eve-ning May 23, 2024
e0e5195
Merge pull request #62 from FR-DC/frml-143
Eve-ning May 23, 2024
2898f9b
Make function name explicit on aug strength
Eve-ning May 23, 2024
2964b5b
Make mixmatch use strong aug
Eve-ning May 23, 2024
01043e1
Make unl transform transform recursively
Eve-ning May 23, 2024
5081785
Fix inconsistent sizing without crop
Eve-ning May 23, 2024
c697452
Add weak_strong aug for fixmatch
Eve-ning May 23, 2024
d36d95c
Add fixmatch for efficientnet
Eve-ning May 23, 2024
57a61a2
Update utils.py
Eve-ning May 23, 2024
4c1dcd1
Create fixmatch_module.py
Eve-ning May 23, 2024
fff196a
Add fixmatch training script
Eve-ning May 23, 2024
33054db
Fix autograd of strong aug
Eve-ning May 23, 2024
48f45b1
Refactor out threshold
Eve-ning May 27, 2024
c527aa8
Fix incorrect aug used for MixMatch
Eve-ning May 27, 2024
a229da5
Factor out x and y preproc
Eve-ning May 27, 2024
57aa705
Update name to discern from FixMatch
Eve-ning May 27, 2024
ad512cc
Manual Tune Hyperparams
Eve-ning May 27, 2024
862adb8
Update name to reflect new image size
Eve-ning May 27, 2024
631a6a8
Add testing for FixMatch
Eve-ning May 27, 2024
9cf5b60
Refactor EfficientNetB1 for custom checkpointing
Eve-ning May 28, 2024
8534972
Implement custom checkpointing
Eve-ning May 28, 2024
a365ec0
Clean up redundant import
Eve-ning May 28, 2024
2a0e4c9
Extend Test for loading and saving check
Eve-ning May 28, 2024
d2ad19c
Extend load/save to save batchnorm stats
Eve-ning May 28, 2024
ef0b738
Add valiation loss check
Eve-ning May 28, 2024
dff425e
Factor out accelerator and wandb config from main run
Eve-ning May 28, 2024
2716e60
Merge pull request #63 from FR-DC/frml-75
Eve-ning May 28, 2024
3302063
Update evaluation dataset to use all 8 orients
Eve-ning May 29, 2024
0547000
Merge pull request #64 from FR-DC/frml-145
Eve-ning May 29, 2024
581d061
Fix issue with loss differing by small val
Eve-ning May 29, 2024
b647e59
Merge branch 'frrd-77' of https://github.com/FR-DC/FRDC-ML into frrd-77
Eve-ning May 29, 2024
e1beab1
Refactor dummy dl code
Eve-ning May 29, 2024
e947f43
Refactor out preprocess for external use
Eve-ning May 29, 2024
c8d9e8c
Comment on difficult to understand casting
Eve-ning May 29, 2024
6dc8a00
Change _lab to _lbl for syntax consistency
Eve-ning May 29, 2024
5bd9fb2
Fix issue preprocessing breaking w/ 1 sample
Eve-ning May 29, 2024
a55128f
Fix issue with bad batch spread syntax
Eve-ning May 30, 2024
0605760
Merge pull request #65 from FR-DC/frml-142
Eve-ning May 30, 2024
bcebb08
Add Plotly dev dep
Eve-ning May 30, 2024
ae7e3f1
Merge pull request #61 from FR-DC/frrd-77
Eve-ning May 31, 2024
e5d2c95
Reduce epochs
Eve-ning May 31, 2024
db540bb
Make reports a+ to "stack"
Eve-ning May 31, 2024
ceaebb4
Make GH Actions run both models
Eve-ning May 31, 2024
226b0d9
Format Black
Eve-ning May 31, 2024
3145ae7
Refactor FixMatch for readability
Eve-ning Jun 4, 2024
6117db0
Moves README to the exact story
Eve-ning Jun 4, 2024
dea588f
Add FRRD-80 viz
Eve-ning Jun 4, 2024
49fdf24
Merge branch '0.1.0' into frrd-80
Eve-ning Jun 4, 2024
96ea431
Merge pull request #67 from FR-DC/frrd-80
Eve-ning Jun 4, 2024
62b16e0
Add FRRD-81 Notebook
Eve-ning Jun 4, 2024
54d28de
Add interface to accept NaN
Eve-ning Jun 4, 2024
2b451cb
Add disclaimer on rendering nb on GH
Eve-ning Jun 5, 2024
06ef868
Merge pull request #68 from FR-DC/frrd-81
Eve-ning Jun 5, 2024
b6d2d5a
Fix formatting problem for report
Eve-ning Jun 5, 2024
71534c6
Merge branch '0.1.0' of https://github.com/FR-DC/FRDC-ML into 0.1.0
Eve-ning Jun 5, 2024
730fdc4
Merge pull request #66 from FR-DC/0.1.0
Eve-ning Jun 5, 2024
0c11e6a
Make Partial saving function more generic
Eve-ning Jun 5, 2024
ce8f7bb
Reduce scope of MixMatch custom criteria saving
Eve-ning Jun 5, 2024
a8247ac
Merge pull request #69 from FR-DC/frml-149
Eve-ning Jun 6, 2024
cf1fae0
Fix flaky retrieval of task
Eve-ning Jun 6, 2024
f09d452
Merge pull request #70 from FR-DC/frml-152
Eve-ning Jun 7, 2024
02a4d57
Migrate x as preprocessing step in dataset
Eve-ning Jun 7, 2024
8497c3e
Fix unexpected additional x scaler arg
Eve-ning Jun 10, 2024
ab9de7c
Refactor common modules to FRDCModule
Eve-ning Jun 10, 2024
13b1593
Allow StandardScaler to override default scaler
Eve-ning Jun 10, 2024
0a4ef8a
Merge pull request #71 from FR-DC/frml-146
Eve-ning Jun 10, 2024
236c019
Improve augmentation naming scheme
Eve-ning Jun 11, 2024
b6f68ea
Migrate Const Rotated Dataset to prefix variant
Eve-ning Jun 11, 2024
a51c2d8
Update mixmatch's training to use new variant
Eve-ning Jun 11, 2024
4fd7875
Revert epoch and iteration changes for fixmatch
Eve-ning Jun 11, 2024
8e17245
Merge pull request #72 from FR-DC/frml-153
Eve-ning Jun 11, 2024
aa5292e
Fix issue that slows down preprocessing
Eve-ning Jun 11, 2024
754b273
Improve naming scheme for label_studio module
Eve-ning Jun 13, 2024
367f6bf
Add spin up dependencies and script for replica
Eve-ning Jun 13, 2024
e9cb00a
Merge pull request #73 from FR-DC/frml-154
Eve-ning Jun 18, 2024
0f36c20
Enable installing torch from poetry
Eve-ning Jun 19, 2024
c58126e
Drop unused deps
Eve-ning Jun 19, 2024
090eabd
Remove installation in workflow to test poetry
Eve-ning Jun 19, 2024
fd6ca40
Revert Augmentation Change
Eve-ning Jun 19, 2024
110c253
Force tests to run on poetry dep change
Eve-ning Jun 19, 2024
d5bc1f1
Merge pull request #75 from FR-DC/frml-159
Eve-ning Jun 19, 2024
b208a5f
Force rerun
Eve-ning Jun 19, 2024
df7d1a6
Merge pull request #74 from FR-DC/0.1.1
Eve-ning Jun 19, 2024
c7c7dc0
Merge branch 'main' into 0.1.2
Eve-ning Jun 19, 2024
bffa9ae
Improve logging information during initialization
Eve-ning Jun 21, 2024
5294c3d
Update FRDCDataset to hide unused methods
Eve-ning Jun 21, 2024
3d4c7e6
Update docs to encourage iterating
Eve-ning Jun 21, 2024
0bb4734
Refactor dataset.py
Eve-ning Jun 26, 2024
856eed7
Remove unraisable error
Eve-ning Jun 26, 2024
78a5bf6
Drop unused imports and add return type hint
Eve-ning Jun 26, 2024
b17cb84
Update signatures for get legacy bounds
Eve-ning Jun 26, 2024
a584ad3
Clarify attribute naming of order
Eve-ning Jun 26, 2024
1673a90
Update docs
Eve-ning Jun 26, 2024
965b623
Default DEBUG to use legacy bounds for tests
Eve-ning Jun 26, 2024
6b49b5e
Make .env non-mandatory
Eve-ning Jun 26, 2024
656b203
Fix issue with .env not being copied in workflow
Eve-ning Jun 26, 2024
80cb6fe
Merge pull request #77 from FR-DC/frml-155
Eve-ning Jun 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
LABEL_STUDIO_API_KEY=
LABEL_STUDIO_HOST=10.97.41.70
LABEL_STUDIO_PORT=8080
GCS_PROJECT_ID=frmodel
GCS_BUCKET_NAME=frdc-ds
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Dockerfile text=auto eol=lf
Dockerfile text=auto eol=lf
* text=auto
*.ipynb -linguist-detectable
8 changes: 7 additions & 1 deletion .github/workflows/basic-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ "main" ]
pull_request:
paths:
- "src/frdc/**"
- "poetry.lock"

jobs:
build:
Expand Down Expand Up @@ -38,7 +41,6 @@ jobs:
python -m pip install flake8 pytest poetry
poetry export --with dev --without-hashes -o requirements.txt
pip install -r requirements.txt
pip install torch torchaudio torchvision lightning

- name: Lint with flake8
run: |
Expand All @@ -47,6 +49,10 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 src/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

- name: Copy over .env
run: |
cp .env.example .env

- name: Test with pytest
run: |
pytest
47 changes: 47 additions & 0 deletions .github/workflows/build-ls-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish Custom Label Studio Image
on:
push:
branches: [ 'terraform' ]
paths:
- 'src/terraform/Dockerfile'
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: ./src/terraform
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
8 changes: 6 additions & 2 deletions .github/workflows/model-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
python3 -m pip install flake8 pytest poetry
poetry export --with dev --without-hashes -o requirements.txt
pip3 install -r requirements.txt
pip3 install torch torchvision torchaudio

- name: Check CUDA is available
run: nvidia-smi
Expand Down Expand Up @@ -81,11 +80,16 @@ jobs:
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}

- name: Copy over .env
run: |
cp .env.example .env

- name: Run Model Training
working-directory: ${{ github.workspace }}/tests
run: |
git config --global --add safe.directory /__w/FRDC-ML/FRDC-ML
python3 -m model_tests.chestnut_dec_may.train
python3 -m model_tests.chestnut_dec_may.train_fixmatch
python3 -m model_tests.chestnut_dec_may.train_mixmatch

- name: Comment results via CML
run: |
Expand Down
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,43 @@ cython_debug/
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
.idea/

# Terraform Ignores
# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log
crash.*.log

# Exclude all .tfvars files, which are likely to contain sensitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
*.tfvars
*.tfvars.json

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

# Ignore CLI configuration files
.terraformrc
terraform.rc


# Ignores the raw .tif files
rsc/**/*.tif

Expand Down
2 changes: 1 addition & 1 deletion Writerside/d.tree
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
start-page="Overview.md">

<toc-element topic="Overview.md"/>
<toc-element topic="ML-Architecture.md"/>
<toc-element topic="Getting-Started.md">
<toc-element topic="Get-Started-with-Dev-Containers.md"/>
</toc-element>
Expand All @@ -28,6 +29,5 @@
<toc-element topic="preprocessing.extract_segments.md"/>
<toc-element topic="preprocessing.morphology.md"/>
<toc-element topic="preprocessing.glcm_padded.md"/>
<toc-element topic="train.frdc_lightning.md"/>
</toc-element>
</instance-profile>
5 changes: 5 additions & 0 deletions Writerside/topics/Get-Started-with-Dev-Containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ steps such as:
- Google Cloud Application Default Credentials
- Weight & Bias API Key
- Label Studio API Key

> You can set the API Keys in the `.env` file in the root of the project.
> Be careful not to commit the `.env` file to the repository, which should
> have been ignored by default.
{style='note'}
Loading
Loading