mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 02:32:59 +00:00
slurm-jsonl2tfrecord.job: auto install dependencies
This commit is contained in:
parent
1442d20524
commit
80e1a33ee2
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ echo ">>> Settings";
|
||||||
|
|
||||||
echo "INPUT $INPUT";
|
echo "INPUT $INPUT";
|
||||||
|
|
||||||
|
echo ">>> Installing requirements";
|
||||||
|
cd ../aimodel || { echo "Error: Failed to cd to ai model directory"; exit 1; };
|
||||||
|
conda run -n py38 pip install -r requirements.txt;
|
||||||
|
cd ../rainfallwrangler || { echo "Error: Failed to cd back to rainfallwrangler directory"; exit 1; };
|
||||||
echo ">>> Converting dataset .jsonl.gz → .tfrecord.gz";
|
echo ">>> Converting dataset .jsonl.gz → .tfrecord.gz";
|
||||||
/usr/bin/env time -v src/index.mjs jsonl2tfrecord --verbose --source "${INPUT}" --target "${OUTPUT}";
|
/usr/bin/env time -v src/index.mjs jsonl2tfrecord --verbose --source "${INPUT}" --target "${OUTPUT}";
|
||||||
echo ">>> exited with code $?";
|
echo ">>> exited with code $?";
|
||||||
|
|
Loading…
Reference in a new issue