Skip to content

Commit

Permalink
Working model with class-based methods
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanwenchen committed Nov 29, 2023
1 parent 39b41a2 commit 835e2cd
Show file tree
Hide file tree
Showing 4 changed files with 236 additions and 163 deletions.
7 changes: 4 additions & 3 deletions install_azure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ PYTHONPATH="./:$PYTHONPATH" torchrun --nproc_per_node=${NPROC_PER_NODE} --master
--ddp_find_unused_parameters True
python loo.py \
--qas_train_loo data/tomloc/qa/tomloc_train_loo_removed_merged_n3_with_frames_idx_instruction.json \
--qas_eval_loo data/tomloc/qa/tomloc_eval_loo_removed_merged_n3_with_frames_idx_instruction.json
# Start loo
export NPROC_PER_NODE=1 # 1 For debugging
export OMP_NUM_THREADS=$(($(nproc) / ${NPROC_PER_NODE}))
PYTHONPATH="./:$PYTHONPATH" torchrun --nproc_per_node=${NPROC_PER_NODE} --master_port 29001 loo_mem.py --num_frames 100 --topk 5 --model_name_or_path ${HOME}/checkpoint-3800/ --data_path data/tomloc/qa/tomloc_eval_loo_removed_merged_n3_with_frames_idx_instruction.json --output_dir ./tomloc_checkpoints_1_loo_post --lazy_preprocess True --video_folder data/tomloc/clip_features_merged_n3 --bf16 True --tf32 True --tune_mm_mlp_adapter True
Loading

0 comments on commit 835e2cd

Please sign in to comment.