adversarial_VLNDUET/pretrain_src/run_soon.sh
Shizhe Chen 89214a7c44 init
2022-03-26 20:56:29 +01:00

12 lines
431 B
Bash

NODE_RANK=0
NUM_GPUS=1
outdir=../datasets/SOON/exprs_map/pretrain/cmt-vitbase.butdobj-mlm.sap.og-init.lxmert
# train
CUDA_VISIBLE_DEVICES='0' python -m torch.distributed.launch \
--nproc_per_node=${NUM_GPUS} --node_rank $NODE_RANK \
train_soon_obj.py --world_size ${NUM_GPUS} \
--vlnbert cmt \
--model_config config/soon_obj_model_config.json \
--config config/soon_obj_pretrain.json \
--output_dir $outdir