Skip to content

Commit

Permalink
Remove local references from bash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannic Bracke committed Feb 11, 2025
1 parent 3b34ac5 commit e24e1dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions compute_alignments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
# Exit in case of errors
set -e

# Adjust model name
# TODO: Specify model name
MODELSDIRNAME=models_2024-03-21


# Paths
TRAINCFG=/home/bracke/code/transnormer/models/$MODELSDIRNAME/training_config.toml
OUT1=/home/bracke/code/transnormer/hidden/statistics/typestats-orig2norm-$MODELSDIRNAME.pkl
TRAINCFG=models/$MODELSDIRNAME/training_config.toml
OUT1=hidden/statistics/typestats-orig2norm-$MODELSDIRNAME.pkl
# uncomment this and final line, if needed
# OUT2=/home/bracke/code/transnormer/hidden/statistics/typestats-norm2orig-$MODELSDIRNAME.pkl
# OUT2=hidden/statistics/typestats-norm2orig-$MODELSDIRNAME.pkl

# Prepare conda environment
CONDA_BASE=$(conda info --base)
Expand Down
2 changes: 1 addition & 1 deletion train_pred_eval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ BASENAME_PRED=preds.jsonl
PATH_PRED=$DIR_PRED/$BASENAME_PRED

# Edit test_config.toml
sed -i "22s/.*/checkpoint = \"\/home\/bracke\/code\/transnormer\/models\/${MODELSDIRNAME}\"/" test_config.toml
sed -i "22s/.*/checkpoint = \"models\/${MODELSDIRNAME}\"/" test_config.toml

echo "Started generating: $(date)"

Expand Down

0 comments on commit e24e1dc

Please sign in to comment.