# VRE Dronescapes command log ## Original videos Run VRE on the raw videos (in vre_dronescapes dir) ```bash tmux new -s vre_atanasie VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=0 vre ../raw_data/videos/atanasie_DJI_0652_full/atanasie_DJI_0652_full_540p.mp4 -o atanasie_DJI_0652_full/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_barsana VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=1 vre ../raw_data/videos/barsana_DJI_0500_0501_combined_sliced_2700_14700/barsana_DJI_0500_0501_combined_sliced_2700_14700_540p.mp4 -o barsana_DJI_0500_0501_combined_sliced_2700_14700/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_comana VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=2 vre ../raw_data/videos/comana_DJI_0881_full/comana_DJI_0881_full_540p.mp4 -o comana_DJI_0881_full/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_gradistei VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=3 vre ../raw_data/videos/gradistei_DJI_0787_0788_0789_combined_sliced_3510_13110/gradistei_DJI_0787_0788_0789_combined_sliced_3510_13110_540p.mp4 -o gradistei_DJI_0787_0788_0789_combined_sliced_3510_13110/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_herculane VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=4 vre ../raw_data/videos/herculane_DJI_0021_full/herculane_DJI_0021_full_540p.mp4 -o herculane_DJI_0021_full/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_petrova VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=5 vre ../raw_data/videos/petrova_DJI_0525_0526_combined_sliced_2850_11850/petrova_DJI_0525_0526_combined_sliced_2850_11850_540p.mp4 -o petrova_DJI_0525_0526_combined_sliced_2850_11850/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_norway VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=6 vre ../raw_data/videos/norway_210821_DJI_0015_full/norway_210821_DJI_0015_full_540p.mp4 -o norway_210821_DJI_0015_full/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_slanic VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=6 vre ../raw_data/videos/slanic_DJI_0956_0957_combined_sliced_780_9780/slanic_DJI_0956_0957_combined_sliced_780_9780_540p.mp4 -o slanic_DJI_0956_0957_combined_sliced_780_9780/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_jupiter VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=7 vre ../raw_data/videos/jupiter_DJI_0703_0704_0705_combined_sliced_10650_21715/jupiter_DJI_0703_0704_0705_combined_sliced_10650_21715_540p.mp4 -o jupiter_DJI_0703_0704_0705_combined_sliced_10650_21715/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_olanesti VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=7 vre ../raw_data/videos/olanesti_DJI_0416_full/olanesti_DJI_0416_full_540p.mp4 -o olanesti_DJI_0416_full/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks ``` ### Split dataset in the relevant 8 splits (in root dir) ```bash python scripts/symlinks_from_txt_list.py vre_dronescapes/ --copy_files --txt_file scripts/txt_files/annotated_and_segprop/train_files_11664.txt -o data/train_set python scripts/symlinks_from_txt_list.py vre_dronescapes/ --copy_files --txt_file scripts/txt_files/annotated_and_segprop/val_files_605.txt -o data/validation_set python scripts/symlinks_from_txt_list.py vre_dronescapes/ --copy_files --txt_file scripts/txt_files/annotated_and_segprop/semisup_files_11299.txt -o data/semisupervised_set python scripts/symlinks_from_txt_list.py vre_dronescapes/ --copy_files --txt_file scripts/txt_files/annotated_and_segprop/test_files_5603.txt -o data/test_set python scripts/symlinks_from_txt_list.py vre_dronescapes/ --copy_files --txt_file scripts/txt_files/manually_annotated_files/train_files_218.txt -o data/train_set_annotated_only python scripts/symlinks_from_txt_list.py vre_dronescapes/ --copy_files --txt_file scripts/txt_files/manually_annotated_files/val_files_15.txt -o data/validation_set_annotated_only python scripts/symlinks_from_txt_list.py vre_dronescapes/ --copy_files --txt_file scripts/txt_files/manually_annotated_files/semisup_files_207.txt -o data/semisupervised_set_annotated_only python scripts/symlinks_from_txt_list.py vre_dronescapes/ --copy_files --txt_file scripts/txt_files/manually_annotated_files/test_files_116.txt -o data/test_set_annotated_only ``` ## New videos ```bash tmux new -s norway2 VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=1 vre ../raw_data/videos/new_videos/norway_DJI_0708_540p.mp4 -o norway_DJI_0708_540p --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s politehnica VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=2 vre ../raw_data/videos/new_videos/politehnica_DJI_0741_a2_540p.mp4 -o politehnica_DJI_0741_a2_540p/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s ovaselu VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=3 vre ../raw_data/videos/new_videos/ovaselu_DJI_0372_540p.mp4 -o ovaselu_DJI_0372_540p/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s raciu VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=4 vre ../raw_data/videos/new_videos/raciu_DJI_0418_540p.mp4 -o raciu_DJI_0418_540p/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s sf VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=5 vre ../raw_data/videos/new_videos/sanfrancisco_youtube_1_540p.mp4 -o sanfrancisco_youtube_1_540p/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s paris VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=6 vre ../raw_data/videos/new_videos/paris_youtube_1_540p.mp4 -o paris_youtube_1_540p/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s rio VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=7 vre ../raw_data/videos/new_videos/riodejaneiro_youtube_1_540p.mp4 -o riodejaneiro_youtube_1_540p/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s sheerness VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=0 vre ../raw_data/videos/new_videos/sheerness_youtube_1_540p.mp4 -o sheerness_youtube_1_540p/ --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks ``` ### Add the output tasks derived from existing ones and global statistics ```bash dirs=( norway_DJI_0708_540p politehnica_DJI_0741_a2_540p ovaselu_DJI_0372_540p raciu_DJI_0418_540p sanfrancisco_youtube_1_540p paris_youtube_1_540p riodejaneiro_youtube_1_540p sheerness_youtube_1_540p ) for line in ${dirs[@]}; do echo $line cp -r $line/depth_marigold $line/depth_output ../scripts/update_stastistics.py $line/depth_output/npz --statistics_file ../data/train_set/.task_statistics.npz --source_task depth_marigold --n_workers 32 cp -r $line/'normals_svd(depth_marigold)' $line/camera_normals_output done ``` ### Incldue the new videos in the txt files for training This will make combined txt file of all new scenes + old data in vre_dronescapes_dir ```bash mkdir ../scripts/txt_files/experts # in root dir dirs=( norway_DJI_0708_540p politehnica_DJI_0741_a2_540p ovaselu_DJI_0372_540p raciu_DJI_0418_540p sanfrancisco_youtube_1_540p paris_youtube_1_540p riodejaneiro_youtube_1_540p sheerness_youtube_1_540p ) for line in ${dirs[@]}; do rm -f ../scripts/txt_files/experts/"$line".txt; ls -v $line/rgb/npz | while read line2; do stem=${line2:0:-4}; echo $line/$stem >> ../scripts/txt_files/experts/"$line".txt; done; done cd ../scripts/txt_files/experts # move to txt files dir cat ../annotated_and_segprop/train_files_11664.txt > train_set.txt cat ../annotated_and_segprop/semisup_files_11299.txt >> train_set.txt ls | grep -v train_set | while read line; do cat $line >> train_set.txt; done echo "The new train set has $(cat train_set.txt | wc -l) data points across all experts." cd ../../../ # root dir python scripts/symlinks_from_txt_list.py vre_dronescapes/ --txt_file scripts/txt_files/experts/train_set.txt -o data/train_set_experts ``` ## New videos part 2 ```bash tmux new -s vre_castel VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=0 vre ../raw_data/videos/new_videos2/castelulcorvinilor_DJI_20230915122046_0040_D_540p.mp4 -o castelulcorvinilor_DJI_20230915122046_0040_D_540p --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_comana2 VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=1 vre ../raw_data/videos/new_videos2/comana_DJI_20240721134505_0029_D_540p.mp4 -o comana_DJI_20240721134505_0029_D_540p --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_herculane2 VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=2 vre ../raw_data/videos/new_videos2/herculane_DJI_20240807121925_0049_D_540p.mp4 -o herculane_DJI_20240807121925_0049_D_540p --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_horezu VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=3 vre ../raw_data/videos/new_videos2/horezeu_DJI_20240924171535_0059_D_540p.mp4 -o horezeu_DJI_20240924171535_0059_D_540p --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_olanesti2 VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=4 vre ../raw_data/videos/new_videos2/olanesti_DJI_20240924125710_0005_D_540p.mp4 -o olanesti_DJI_20240924125710_0005_D_540p --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_pietrosa VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=5 vre ../raw_data/videos/new_videos2/pietrosa_DJI_20240603132329_0021_D_540p.mp4 -o pietrosa_DJI_20240603132329_0021_D_540p --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_slanic2 VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=6 vre ../raw_data/videos/new_videos2/slanic_DJI_20240604124727_0023_D_540p.mp4 -o slanic_DJI_20240604124727_0023_D_540p --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks tmux new -s vre_voronet VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=7 vre ../raw_data/videos/new_videos2/voronet_DJI_20230918122921_0102_D_540p.mp4 -o voronet_DJI_20230918122921_0102_D_540p --config_path cfg.yaml --output_dir_exists_mode skip_computed --exception_mode skip_representation --n_threads_data_storer 4 -I ../scripts/semantic_mapper/semantic_mapper.py:get_new_semantic_mapped_tasks ``` ### Add the output tasks derived from existing ones and global statistics ```bash dirs=( castelulcorvinilor_DJI_20230915122046_0040_D_540p comana_DJI_20240721134505_0029_D_540p herculane_DJI_20240807121925_0049_D_540p horezeu_DJI_20240924171535_0059_D_540p olanesti_DJI_20240924125710_0005_D_540p pietrosa_DJI_20240603132329_0021_D_540p slanic_DJI_20240604124727_0023_D_540p voronet_DJI_20230918122921_0102_D_540p ) for line in ${dirs[@]}; do echo $line cp -r $line/depth_marigold $line/depth_output ../scripts/update_stastistics.py $line/depth_output/npz --statistics_file ../data/train_set/.task_statistics.npz --source_task depth_marigold --n_workers 32 cp -r $line/'normals_svd(depth_marigold)' $line/camera_normals_output done ``` ### Incldue the new videos in the txt files for training This will make combined txt file of all new scenes + old data in vre_dronescapes_dir ```bash mkdir ../scripts/txt_files/experts2 # in root dir dirs=( castelulcorvinilor_DJI_20230915122046_0040_D_540p comana_DJI_20240721134505_0029_D_540p herculane_DJI_20240807121925_0049_D_540p horezeu_DJI_20240924171535_0059_D_540p olanesti_DJI_20240924125710_0005_D_540p pietrosa_DJI_20240603132329_0021_D_540p slanic_DJI_20240604124727_0023_D_540p voronet_DJI_20230918122921_0102_D_540p ) for line in ${dirs[@]}; do rm -f ../scripts/txt_files/experts2/"$line".txt; ls -v $line/rgb/npz | while read line2; do stem=${line2:0:-4}; echo $line/$stem >> ../scripts/txt_files/experts2/"$line".txt; done; done cd ../scripts/txt_files/experts2 # move to txt files dir cat ../experts/train_set.txt > train_set.txt ls | grep -v train_set | while read line; do cat $line >> train_set.txt; done echo "The new train set has $(cat train_set.txt | wc -l) data points across all experts." cd ../../../ # root dir python scripts/symlinks_from_txt_list.py vre_dronescapes/ --txt_file scripts/txt_files/experts2/train_set.txt -o data/train_set_experts2 ```