diff options
Diffstat (limited to 'src/tasks')
-rwxr-xr-x | src/tasks/create_emnist_lines_datasets.sh | 2 | ||||
-rwxr-xr-x | src/tasks/create_iam_paragraphs.sh | 2 | ||||
-rwxr-xr-x | src/tasks/download_emnist.sh | 2 | ||||
-rwxr-xr-x | src/tasks/download_iam.sh | 2 | ||||
-rwxr-xr-x | src/tasks/prepare_experiments.sh | 2 | ||||
-rwxr-xr-x | src/tasks/test_functionality.sh | 2 | ||||
-rwxr-xr-x | src/tasks/train.sh | 3 |
7 files changed, 8 insertions, 7 deletions
diff --git a/src/tasks/create_emnist_lines_datasets.sh b/src/tasks/create_emnist_lines_datasets.sh index 0940549..6416277 100755 --- a/src/tasks/create_emnist_lines_datasets.sh +++ b/src/tasks/create_emnist_lines_datasets.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/fish command="python text_recognizer/datasets/emnist_lines_dataset.py --max_length 34 --min_overlap 0.0 --max_overlap 0.33 --num_train 100000 --num_test 10000" echo $command eval $command diff --git a/src/tasks/create_iam_paragraphs.sh b/src/tasks/create_iam_paragraphs.sh index 9063d44..fa2bfb0 100755 --- a/src/tasks/create_iam_paragraphs.sh +++ b/src/tasks/create_iam_paragraphs.sh @@ -1,2 +1,2 @@ -#!/bin/bash +#!/usr/bin/fish poetry run create-iam-paragraphs diff --git a/src/tasks/download_emnist.sh b/src/tasks/download_emnist.sh index d142324..18c8e29 100755 --- a/src/tasks/download_emnist.sh +++ b/src/tasks/download_emnist.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/fish poetry run download-emnist poetry run create-emnist-support-files diff --git a/src/tasks/download_iam.sh b/src/tasks/download_iam.sh index 4bf011c..e3cf76b 100755 --- a/src/tasks/download_iam.sh +++ b/src/tasks/download_iam.sh @@ -1,2 +1,2 @@ -#!/bin/bash +#!/usr/bin/fish poetry run download-iam diff --git a/src/tasks/prepare_experiments.sh b/src/tasks/prepare_experiments.sh index f2787b3..95a538f 100755 --- a/src/tasks/prepare_experiments.sh +++ b/src/tasks/prepare_experiments.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/fish experiments_filename=${1:-training/experiments/sample_experiment.yml} poetry run prepare-experiments --experiments_filename $experiments_filename diff --git a/src/tasks/test_functionality.sh b/src/tasks/test_functionality.sh index cd7eb15..5ccf0cd 100755 --- a/src/tasks/test_functionality.sh +++ b/src/tasks/test_functionality.sh @@ -1,2 +1,2 @@ -#!/bin/bash +#!/usr/bin/fish pytest -s -q text_recognizer diff --git a/src/tasks/train.sh b/src/tasks/train.sh index 71a68be..60cbd23 100755 --- a/src/tasks/train.sh +++ b/src/tasks/train.sh @@ -1,5 +1,6 @@ #!/bin/bash + # Add checkpoint and resume experiment usage() { cat << EOF @@ -45,7 +46,7 @@ then fi experiments_filename="training/experiments/${experiment_config}" -train_command=$(./tasks/prepare_experiments.sh $experiments_filename) +train_command=$(bash tasks/prepare_experiments.sh $experiments_filename) if [ ${checkpoint} ]; then |