FangSen9000 commited on
Commit
179c372
·
1 Parent(s): dde130b

Remove stray NFS temp file

Browse files
plugins/SignX/training_yutubeasl/scripts/.nfs000000004234454e00002a55 DELETED
@@ -1,95 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Train SLTUNET model on ASLLRP dataset
4
- # Run this after extract_features.sh completes
5
-
6
- set -e
7
-
8
- SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
9
- REPO_ROOT=$(cd "$SCRIPT_DIR/../.." && pwd)
10
-
11
- # Auto-select available GPUs (skip GPUs with >20% memory usage)
12
- echo "========================================="
13
- echo "Auto-selecting available GPUs..."
14
- echo "========================================="
15
- eval $(bash "$SCRIPT_DIR/select_gpus.sh")
16
-
17
- export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
18
-
19
- # Paths
20
- data=preprocessed-asllrp/
21
- feature=smkd/work_dir/asllrp_smkd/
22
-
23
- echo "========================================="
24
- echo "Training SLTUNET on ASLLRP Dataset"
25
- echo "========================================="
26
-
27
- # First, you need to prepare the text data (glosses)
28
- # Create preprocessed-asllrp directory and prepare BPE tokenization
29
-
30
- echo ""
31
- echo "Make sure you have:"
32
- echo "1. Created $data directory"
33
- echo "2. Prepared BPE tokenized gloss files"
34
- echo "3. Extracted SMKD features in $feature"
35
- echo ""
36
-
37
- # Train SLTUNET model
38
- # Create log directory
39
- LOG_DIR="$REPO_ROOT/checkpoints_asllrp/logs"
40
- mkdir -p "$LOG_DIR"
41
- TIMESTAMP=$(date +%Y%m%d_%H%M%S)
42
- LOG_FILE="$LOG_DIR/training_${TIMESTAMP}.log"
43
-
44
- echo "Training logs will be saved to: $LOG_FILE"
45
- echo "You can monitor the log with: tail -f $LOG_FILE"
46
- echo ""
47
-
48
- (cd "$REPO_ROOT" && python run.py --mode train --parameters=\
49
- hidden_size=256,embed_size=256,filter_size=4096,\
50
- sep_layer=0,num_encoder_layer=6,num_decoder_layer=6,\
51
- ctc_enable=True,ctc_alpha=0.3,ctc_repeated=True,\
52
- src_bpe_dropout=0.2,tgt_bpe_dropout=0.2,bpe_dropout_stochastic_rate=0.6,\
53
- initializer="uniform_unit_scaling",initializer_gain=0.5,\
54
- dropout=0.3,label_smooth=0.1,attention_dropout=0.3,relu_dropout=0.5,residual_dropout=0.4,\
55
- max_len=256,max_img_len=512,batch_size=240,eval_batch_size=80,\
56
- token_size=4800,batch_or_token='token',beam_size=8,remove_bpe=True,decode_alpha=1.0,\
57
- scope_name="transformer",buffer_size=50000,data_leak_ratio=0.1,\
58
- img_feature_size=1024,img_aug_size=10,\
59
- clip_grad_norm=5.0,\
60
- num_heads=4,\
61
- process_num=16,\
62
- lrate=1.0,\
63
- estop_patience=100,\
64
- warmup_steps=500,\
65
- epoches=5000,\
66
- update_cycle=16,\
67
- gpus=$GPU_LIST,\
68
- disp_freq=1,\
69
- eval_freq=10,\
70
- save_freq=10,\
71
- sample_freq=10,\
72
- checkpoints=1,\
73
- best_checkpoints=1,\
74
- max_training_steps=30000,\
75
- nthreads=8,\
76
- beta1=0.9,\
77
- beta2=0.998,\
78
- random_seed=1234,\
79
- train_continue=True,\
80
- src_codes="$data/asllrp.bpe",tgt_codes="$data/asllrp.bpe",\
81
- src_vocab_file="$data/vocab.asllrp",\
82
- tgt_vocab_file="$data/vocab.asllrp",\
83
- img_train_file="$feature/train.h5",\
84
- src_train_file="$data/train.bpe.gloss.shuf",\
85
- tgt_train_file="$data/train.bpe.gloss.shuf",\
86
- img_dev_file="$feature/dev.h5",\
87
- src_dev_file="$data/dev.bpe.gloss",\
88
- tgt_dev_file="$data/dev.bpe.gloss",\
89
- img_test_file="$feature/test.h5",\
90
- src_test_file="$data/test.bpe.gloss",\
91
- tgt_test_file="$data/test.bpe.gloss",\
92
- output_dir="checkpoints_asllrp",\
93
- test_output="",\
94
- shared_source_target_embedding=True,\
95
- collect_attention_weights=False) 2>&1 | tee "$LOG_FILE"