Meehai commited on
Commit
ed14971
·
1 Parent(s): e671706

new videwos

Browse files
scripts/semantic_mapper/semantic_mapper.py CHANGED
@@ -11,7 +11,8 @@ from vre.utils import (semantic_mapper, colorize_semantic_segmentation, DiskData
11
  collage_fn, image_add_title, lo)
12
  from vre.readers.multitask_dataset import MultiTaskDataset, MultiTaskItem
13
  from vre.representations import TaskMapper, NpIORepresentation, Representation, build_representations_from_cfg
14
- from vre.representations.cv_representations import DepthRepresentation, NormalsRepresentation, SemanticRepresentation
 
15
 
16
  def plot_one(data: MultiTaskItem, title: str, order: list[str] | None,
17
  name_to_task: dict[str, Representation]) -> np.ndarray:
 
11
  collage_fn, image_add_title, lo)
12
  from vre.readers.multitask_dataset import MultiTaskDataset, MultiTaskItem
13
  from vre.representations import TaskMapper, NpIORepresentation, Representation, build_representations_from_cfg
14
+ from vre.representations.cv_representations import DepthRepresentation, NormalsRepresentation
15
+ from vre.representations.semantic_segmentation import SemanticRepresentation
16
 
17
  def plot_one(data: MultiTaskItem, title: str, order: list[str] | None,
18
  name_to_task: dict[str, Representation]) -> np.ndarray:
scripts/symlinks_from_txt_list.py CHANGED
@@ -36,7 +36,7 @@ def check_and_gather_all_files(dataset_dir: Path, txt_data: list[tuple[str, str]
36
  for scene, stem in tqdm(txt_data, desc="Gather data"):
37
  assert (dataset_dir / scene).exists(), f"Scene '{scene}' does not exist in '{dataset_dir}'"
38
  if scene not in scene_reprs:
39
- scene_reprs[scene] = [x.name for x in (dataset_dir / scene).iterdir() if x.is_dir()]
40
  n_found = 0
41
  for _repr in scene_reprs[scene]:
42
  if (res := _check_and_find(dataset_dir, output_path, scene, _repr, stem, suffix)) is not None:
 
36
  for scene, stem in tqdm(txt_data, desc="Gather data"):
37
  assert (dataset_dir / scene).exists(), f"Scene '{scene}' does not exist in '{dataset_dir}'"
38
  if scene not in scene_reprs:
39
+ scene_reprs[scene] = [x.name for x in (dataset_dir / scene).iterdir() if x.is_dir()] # TODO: and not hidden
40
  n_found = 0
41
  for _repr in scene_reprs[scene]:
42
  if (res := _check_and_find(dataset_dir, output_path, scene, _repr, stem, suffix)) is not None:
vre_dronescapes/cfg.yaml CHANGED
@@ -16,14 +16,14 @@ representations:
16
  dependencies: []
17
  parameters: {}
18
 
19
- opticalflow_rife:
20
- type: optical-flow/rife
21
- dependencies: []
22
- parameters:
23
- uhd: False
24
- compute_backward_flow: False
25
- compute_parameters:
26
- output_dtype: float16
27
 
28
  semantic_mask2former_coco_47429163_0:
29
  type: semantic-segmentation/mask2former
 
16
  dependencies: []
17
  parameters: {}
18
 
19
+ # opticalflow_rife:
20
+ # type: optical-flow/rife
21
+ # dependencies: []
22
+ # parameters:
23
+ # uhd: False
24
+ # compute_backward_flow: False
25
+ # compute_parameters:
26
+ # output_dtype: float16
27
 
28
  semantic_mask2former_coco_47429163_0:
29
  type: semantic-segmentation/mask2former
vre_dronescapes/commands.txt CHANGED
@@ -41,11 +41,28 @@ python scripts/symlinks_from_txt_list.py vre_dronescapes/ --copy_files --txt_fil
41
  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
42
  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
43
 
44
-
45
  # new videos
46
 
47
- tmux new -s poli
48
- VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=0 vre ../raw_data/videos/new_videos/politehnica_DJI_0708_540p.mp4 -o politehnica_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;
49
-
50
  tmux new -s norway2
51
- VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=1 vre ../raw_data/videos/new_videos/norawy2_DJI_0741_540p.mp4 -o norawy2_DJI_0741_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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  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
42
  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
43
 
 
44
  # new videos
45
 
 
 
 
46
  tmux new -s norway2
47
+ VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=1 vre ../raw_data/videos/new_videos/norway_DJI_0741_540p.mp4 -o norway_DJI_0741_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
48
+
49
+ tmux new -s politehnica
50
+ 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;
51
+
52
+ tmux new -s ovaselu
53
+ 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;
54
+
55
+ tmux new -s raciu
56
+ 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;
57
+
58
+ tmux new -s sf
59
+ 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;
60
+
61
+ tmux new -s paris
62
+ 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;
63
+
64
+ tmux new -s rio
65
+ 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;
66
+
67
+ tmux new -s rome
68
+ VRE_DEVICE=cuda CUDA_VISIBLE_DEVICES=0 vre ../raw_data/videos/new_videos/rome_youtube_1_540p.mp4 -o rome_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;