Dronescapes: A large-scale dataset for multi-task scene understanding from real UAV flights

1UPB    2IMAR    3Bitdefender    4NORCE    5Google Research

Teaser Image

Sample frames from each of the 10 scenes from the Dronescapes dataset. The scenes framed with green borders represent training scenes for which we have access to a small fraction of manual annotations during training. The others depict unseen, test scenes with semantic distributions that are closer to the training set (in blue) or out-of-distribution (red). There is a large variation in spatial distributions of classes among the different Dronescapes scenes, which range from rural (Atanasie - Mila 23, Cheile Grădiștei, Petrova, Bârsana, Comana), to urban (Olănești, Herculane, Slănic Moldova) and seaside (Jupiter, Norway), while also being geographically far apart.

Dronescapes Dataset

We introduce a large-scale UAV video dataset with automatic odometry and 3D information for all frames and semi-automatic semantic segmentation annotation for a subset of frames. All video sequences include GPS information, linear and angular velocities, and absolute camera angles. The total length is about 50 minutes. Videos have 3840 × 2160 30 FPS images, while the odometry is provided at 10 Hz. We collect a total of 10 widely varied scenes that we split into 7 training and 3 test scenes. We highlight the variety in landscapes, altitudes, and object scales between each of the rural (Atanasie - Mila 23, Cheile Grădiștei, Petrova, Bârsana, Comana), urban (Olănești, Herculane, Slănic Moldova) and seaside scenes (Jupiter, Norway). For the test scenes we chose three different kinds: one (Bârsana) with a more similar semantic class distribution to at least one of the training scenes, one (Comana) that is less similar to the training scenes and a third one (Norway), that is very different from any of the training scenes.

Descriptive Figure
Visualization and analysis of semantic distributions per scene and their shifts between the training and testing scenes.

To illustrate the complexity and diversity of the scenes captured, we conducted an in-depth analysis of the semantic distributions across different environments. This analysis not only highlights the richness of our dataset but also demonstrates the varying degrees of difficulty in generalizing learned models across different scenes. By projecting test scenes onto the space defined by our training data, we can visually assess how well our model might generalize to new environments. This projection showcases the varying degrees of distribution shift between our training and testing sets, offering a glimpse into the challenges our models face when encountering new, unseen landscapes. For instance, we observed that the Bârsana test scene closely aligns with our training distribution, suggesting that models trained on our dataset might perform well in this environment. In contrast, the Comana scene presents a moderate challenge, while the Norway scene emerges as a true out-of-distribution case, pushing the boundaries of our models' generalization capabilities.

Visual Representations

Inputs. We expand our visual understanding of the scene by incorporating multiple representations derived from the primary RGB input. These additional representations include HSV color space, soft edges, and soft segmentation maps. By mathematically transforming the RGB data into these complementary forms, we effectively increase the number of connections in our hypergraph model. This expansion indirectly enhances the power of the ensembles formed at the output representations. To further enrich our set of visual representations and improve overall scene comprehension, we also incorporate an unsupervised metric depth map. This addition provides valuable 3D structural information, complementing the 2D data from other representations. By leveraging this diverse array of visual cues, our model gains a more comprehensive understanding of the complex drone-captured scenes, enabling more robust and accurate predictions across various tasks.

Descriptive Image
Types of visual representations from the Dronescapes dataset, some derived using UAV flights, others using well-known models for various tasks. For more details about each representation please read the paper or visit this page.

Annotations (manual, semi and fully-automatic). For the semantic segmentation map, every pixel in a frame is labeled with one of the 8 classes - land, forest, residential, road, little-objects, water, sky and hill. The annotations process was difficult, especially because some objects are too small to be seen clearly, while other larger regions can fall into multiple categories (e.g., an area can be labeled as hill, land, and forest at the same time). The drone trajectory computed with structure from motion (SfM) is aligned automatically with the trajectory from GPS, by a similarity transformation (translation, rotation, and scale), which is then applied to the SfM 3D model. By combining it with the known 6D pose (from GPS and odometry) and camera intrinsic parameters, we obtain accurate metric depth maps (less than 2% error in our extensive offline tests). The generated metric depth maps are used for training only during Iteration 1, otherwise used for evaluation purposes. We automatically processed the SfM 3D meshes in Blender and obtained surface normals at every pixel w.r.t world coordinates, which, multiplied with the inverse of the camera rotation matrix give normals w.r.t camera (aka. ”camera normals”).


Dataset split. Exclusively for the task of semantic segmentation, we sparsely manually annotate frames. Based on their number we divide the scenes in weakly-labeled scenes (Cheile Gradistei, Herculane, Jupiter, Petrova, Olanesti, Barsana and Comana) and strongly-labeled scenes (Atanasie - Mila 23, Slanic Moldeova and Norway). For the strongly labeled scenes, we sample frames every 2 seconds covering the whole video. For the weakly-labeled scenes, we uniformly sample triplets of frames from each scene, such that the frames in each triplet are 2 seconds apart (or 60 frames between the triplet limits), while the triplets are at least 26 seconds apart and have significant changes in pose (viewpoint). We divided our dataset into 4 sets, in a suitable manner for multiple training iterations with the addition of novel data every iteration. Half of the triplets/frames from the training scenes are included in Train Unlabeled (iter 1), whilst the other half is in Train Unlabeled (iter 2). The frames from all the test scenes are included in Train Unlabeled (iter 3). We note that the only manually-labeled frames used in learning the hypergraph are the frames from Train Labeled set, whilst the rest are used for evaluation purposes only.

Descriptive Image
Dronescapes dataset split. For each training scene we report the number of frames used for purely supervised training (Train Labeled set), and also for iterative self-supervised training (Train Unlabeled iterations 1, 2 and 3 sets). In parenthesis we show the number of frames for which we have manual segmentation annotations. Except for the Train Labeled set on the training scenes, all the other annotations are used strictly for evaluation.

Hypergraph Learning on Dronescapes

We focus on scenarios where exact ground truth or human annotations are very scarce or simply not available, which is a very common case in practice. Such an example is the case of learning from UAV videos, which is representative for our scenario and also extremely difficult due to the wide variety and complexity of scenes and camera viewpoints. Learning in the hypergraph requires an initial set of annotations, which is either given by humans, automatically generated (by an offline analytical method) or provided by a pretrained expert. These annotations are used to initialize the individual edges and hyperedges and then learn the ensemble functions. Once the initialization stage is completed, we can proceed with the semi-supervised learning stages (iterations), in which we first produce pseudolabels on newly added data, then retrain the individual edges and hyperedges on the new pseudolabels (including all the other labels and pseudolabels available from previous iterations). Succinctly, each self-supervised learning iteration consists of 1) adding new unlabeled data; 2) producing pseudolabels for the new data; 3) retraining the hyperedges by including the new pseudolabeled data in the training set.


Summary of our hyperpgraph learning procedure for multi-task scene understanding.

Each self-supervised learning cycle we add new unlabeled data. We first produce pseudolabels for each output task by using ensembles of edges and hyperedges and then retrain (distill) the next generation of edges and hyperedges by including the pseudolabeled data during training. For clarity, we detail further how we use the current dataset split in our iterative learning procedure: Iteration 1) Using the Train Labeled dataset, we employ a semi-automatic label propagation method to annotate intermediate frames from adjacent manually la- beled ones and obtain Train Unlabeled (iter 1). For depth and normals, we use the automatically generated labels as described before. For Iteration 2) we used the fully-trained hypergraph from Iteration 1 and generate pseudolabels for frames in Train Unlabeled (iter 2) set, using the hypergraph ensembles for all the predicted tasks. We join the two sets Train Unlabeled (iter 1 + 2) and retrain the hypergraph. For Iteration 3) we repeat the steps from Iteration 2 and generate pseudolabels on the Train Unlabeled (iter 3) set, to expand the set to Train Unlabeled (iter 1 + 2 + 3).


Improvements on Novel Scenes

We showcase the capabilities of the hypergraph to adapt to novel unseen environments while leveraging and even improving upon state-of-the-art foundation models for semantic segmentation. We apply our hypergraph learning technique in a unique, multi-phase approach. This process involves initial training on known data, fine-tuning on Mask2Former's outputs for new scenes, and a final phase of self-supervised learning on unlabeled data from these novel environments. The results of this approach are truly remarkable. Not only does our method improve upon the already impressive performance of Mask2Former, but it does so with a model that is significantly more compact - using two orders of magnitude fewer parameters. This achievement underscores the efficiency and power of our hypergraph learning technique. Perhaps most intriguingly, our approach demonstrates a substantial enhancement in temporal consistency, especailly visible in the video spectrum. This improvement suggests that the self-supervised consensus among multiple tasks effectively reduces classifier variance, potentially leading to more reliable and trustworthy predictions.


We present qualitative improvements on novel scenes. In order (left to right, top to bottom) we display the 1) RGB frames, 2) Mask2Former (raw per-frame predictions), 3) Segprop Labels (pseudo-ground truth), 4) Our best single edge model (1.1M parameters) after 3 iterations of learning with hypergraph consensus. We provide a joint video with all the test scenes: Barsana, Comana, and Norway, to showcase the distinction between scenes with similar class distributions (Barsana, Comana) and those that are completely different (Norway).

ICCVW23 Poster

Acknowledgements

This work was funded in part by UEFISCDI, under Projects EEA-RO-2018-0496 and PN-III-P4-ID-PCE-2020-2819, and by a Google Research Gift. We express our sincere gratitude towards Aurelian Marcu and acknowledge support of National Interest Infrastructure facility IOSIN-CETAL from NILPRP for providing access to GPU resources.

Citation

If you use our Dronescapes dataset, please cite this work:

@InProceedings{Marcu_2023_ICCV,
      author    = {Marcu, Alina and Pirvu, Mihai and Costea, Dragos and Haller, Emanuela and Slusanschi, Emil and Belbachir, Ahmed Nabil and Sukthankar, Rahul and Leordeanu, Marius},
      title     = {Self-Supervised Hypergraphs for Learning Multiple World Interpretations},
      booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops},
      month     = {October},
      year      = {2023},
      pages     = {983-992}
  }

If you use our code, please cite this work:

@InProceedings{Pirvu_2023_ICCV,
      author    = {Pirvu, Mihai and Marcu, Alina and Dobrescu, Maria Alexandra and Belbachir, Ahmed Nabil and Leordeanu, Marius},
      title     = {Multi-Task Hypergraphs for Semi-Supervised Learning Using Earth Observations},
      booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops},
      month     = {October},
      year      = {2023},
      pages     = {3404-3414}
  }