-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from kaylode/dev
Another big update
- Loading branch information
Showing
125 changed files
with
1,739 additions
and
1,982 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/config.local | ||
/tmp | ||
/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[core] | ||
remote = gdrive | ||
['remote "gdrive"'] | ||
url = gdrive://155tBftKDG8VSAWojOWT3exax3hz0Xuwg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Add patterns of files dvc should ignore, which could improve | ||
# the performance. Learn more at | ||
# https://dvc.org/doc/user-guide/dvcignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: autobuild_docker | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- 'V**' | ||
- dev | ||
|
||
env: | ||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GDRIVE_CREDENTIALS_DATA: ${{ secrets.GDRIVE_CREDENTIALS_DATA }} | ||
DOCKERHUB_TAG: kaylode/theseus:latest | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
architecture: 'x64' | ||
- uses: iterative/setup-cml@v1 | ||
- uses: iterative/setup-dvc@v1 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Create credentials file | ||
run: | | ||
echo "$GDRIVE_CREDENTIALS_DATA" > credentials.json | ||
- name: Build Dockerfile | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
tags: ${{ env.DOCKERHUB_TAG }} | ||
outputs: type=docker,dest=${{ github.workspace }}/image.tar | ||
secret-files: | | ||
credentials=./credentials.json | ||
- name: Free up space | ||
run: | | ||
docker system prune -f | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
- name: Docker name | ||
run: | | ||
docker load -i ${{ github.workspace }}/image.tar | ||
docker image inspect ${{ env.DOCKERHUB_TAG }} | ||
- name: Create outputs folder | ||
run: | | ||
mkdir -p outputs | ||
- name: Test Docker | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: ${{ env.DOCKERHUB_TAG }} | ||
options: --rm -v ${{ github.workspace }}/outputs/:/workspace/runs/ | ||
run: | | ||
pytest tests --capture=no | ||
- name: where am I | ||
run: | | ||
pwd | ||
ls -la | ||
ls -la outputs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
global: | ||
exp_name: null | ||
exist_ok: false | ||
debug: false | ||
save_dir: runs | ||
device: cuda:0 | ||
pretrained: null | ||
resume: null | ||
trainer: | ||
name: SupervisedTrainer | ||
args: | ||
num_iterations: 10000 | ||
clip_grad: 1.0 | ||
evaluate_interval: 1 | ||
use_fp16: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
optimizer: | ||
name: AdamW | ||
args: | ||
lr: 0.001 | ||
weight_decay: 0.0005 | ||
betas: | ||
- 0.937 | ||
- 0.999 | ||
scheduler: | ||
name: SchedulerWrapper | ||
args: | ||
scheduler_name: cosine2 | ||
t_initial: 7 | ||
t_mul: 0.9 | ||
eta_mul: 0.9 | ||
eta_min: 1.0e-06 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
includes: | ||
- configs/base/globals.yaml | ||
- configs/base/optimizer.yaml | ||
- configs/classification/transform.yaml | ||
- configs/classification/pipeline.yaml | ||
|
||
trainer: | ||
name: SupervisedTrainer | ||
args: | ||
num_iterations: 10 | ||
clip_grad: null | ||
evaluate_interval: 0 | ||
use_fp16: false | ||
|
||
callbacks: [] | ||
|
||
optimizer: | ||
name: AdamW | ||
args: | ||
lr: [0.0001, 0.001] | ||
|
||
optuna: | ||
float: | ||
- optimizer.args.lr |
Oops, something went wrong.