Download scripts/test_singletask.sh from gensim2/GenSim3: direct link, hf CLI and curl.
- Browser
- Download file 786 Bytes
-
https://huggingface.co/spaces/gensim2/GenSim3/resolve/main/scripts/test_singletask.sh
- Command line
-
hf download hf://spaces/gensim2/GenSim3/scripts/test_singletask.sh
-
curl -L -o test_singletask.sh https://huggingface.co/spaces/gensim2/GenSim3/resolve/main/scripts/test_singletask.sh
786 Bytes
| DATA_DIR=$1 | |
| TASK=$2 | |
| DISP=False | |
| echo "Training dataset... Folder: $DATA_DIR Task $TASK" | |
| # You can parallelize these depending on how much resources you have | |
| ############################# | |
| ## Language-Conditioned Tasks | |
| trap "kill 0" SIGINT | |
| LANG_TASKS=$2 | |
| for task in $LANG_TASKS | |
| do | |
| # Generate data | |
| # TEST | |
| python cliport/eval.py eval_task=$task \ | |
| agent=cliport \ | |
| mode=test \ | |
| n_demos=100 \ | |
| train_demos=200 \ | |
| checkpoint_type=test_best \ | |
| exp_folder=exps/exps-singletask \ | |
| update_results=True | |
| done | |
| python notebooks/print_results.py -r=exps/exps-singletask | |
| echo "Finished Training." | |