--- license: apache-2.0 --- # Introduction The model is a geospatioal feature extractor trained to output feature vectors based on multi-band input data. The model is part of a pipeline used in the [DroneML project](https://research-software-directory.org/projects/droneml) by the Netherlands eScience Center and University of Amsterdam (UvA), Department of Archaeology at the Amsterdam Centre for Ancient Studies and Archaeology (ACASA). # Usage Geospatial feature extractor that outputs a number of feature maps, the size of the given input. Input must be a single band of geospatial data (r,g,b,near infrared, dsm, etc). # Dataset The model was trained on the a subset FLAIR-1 dataset (toy-dataset only!) for 10 epochs. The dataset was altered so each band of the training images, that have originally 5-bands, was passed to the model individually. # Architecture Underlying architecture is a UNet. Multiple variations of the same architecture were trained. The only difference is the number of feature maps per layer at each level. The smaller models have a constant fraction of the number of feature maps per layer. Below is a summary of the architecture of the largest model. ```pytorch =============================================================================================== Layer (type:depth-idx) Output Shape Param # =============================================================================================== Unet [4, 19, 512, 512] -- ├─ResNetEncoder: 1-1 [4, 5, 512, 512] -- │ └─Conv2d: 2-1 [4, 64, 256, 256] 15,680 │ └─BatchNorm2d: 2-2 [4, 64, 256, 256] 128 │ └─ReLU: 2-3 [4, 64, 256, 256] -- │ └─MaxPool2d: 2-4 [4, 64, 128, 128] -- │ └─Sequential: 2-5 [4, 64, 128, 128] -- │ │ └─BasicBlock: 3-1 [4, 64, 128, 128] 73,984 │ │ └─BasicBlock: 3-2 [4, 64, 128, 128] 73,984 │ │ └─BasicBlock: 3-3 [4, 64, 128, 128] 73,984 │ └─Sequential: 2-6 [4, 128, 64, 64] -- │ │ └─BasicBlock: 3-4 [4, 128, 64, 64] 230,144 │ │ └─BasicBlock: 3-5 [4, 128, 64, 64] 295,424 │ │ └─BasicBlock: 3-6 [4, 128, 64, 64] 295,424 │ │ └─BasicBlock: 3-7 [4, 128, 64, 64] 295,424 │ └─Sequential: 2-7 [4, 256, 32, 32] -- │ │ └─BasicBlock: 3-8 [4, 256, 32, 32] 919,040 │ │ └─BasicBlock: 3-9 [4, 256, 32, 32] 1,180,672 │ │ └─BasicBlock: 3-10 [4, 256, 32, 32] 1,180,672 │ │ └─BasicBlock: 3-11 [4, 256, 32, 32] 1,180,672 │ │ └─BasicBlock: 3-12 [4, 256, 32, 32] 1,180,672 │ │ └─BasicBlock: 3-13 [4, 256, 32, 32] 1,180,672 │ └─Sequential: 2-8 [4, 512, 16, 16] -- │ │ └─BasicBlock: 3-14 [4, 512, 16, 16] 3,673,088 │ │ └─BasicBlock: 3-15 [4, 512, 16, 16] 4,720,640 │ │ └─BasicBlock: 3-16 [4, 512, 16, 16] 4,720,640 ├─UnetDecoder: 1-2 [4, 16, 512, 512] -- │ └─Identity: 2-9 [4, 512, 16, 16] -- │ └─ModuleList: 2-10 -- -- │ │ └─DecoderBlock: 3-17 [4, 256, 32, 32] 2,360,320 │ │ └─DecoderBlock: 3-18 [4, 128, 64, 64] 590,336 │ │ └─DecoderBlock: 3-19 [4, 64, 128, 128] 147,712 │ │ └─DecoderBlock: 3-20 [4, 32, 256, 256] 46,208 │ │ └─DecoderBlock: 3-21 [4, 16, 512, 512] 6,976 ├─SegmentationHead: 1-3 [4, 19, 512, 512] -- │ └─Conv2d: 2-11 [4, 19, 512, 512] 2,755 │ └─Identity: 2-12 [4, 19, 512, 512] -- │ └─Activation: 2-13 [4, 19, 512, 512] -- │ │ └─Identity: 3-22 [4, 19, 512, 512] -- =============================================================================================== Total params: 24,445,251 Trainable params: 24,445,251 Non-trainable params: 0 Total mult-adds (Units.GIGABYTES): 129.41 =============================================================================================== Input size (MB): 20.97 Forward/backward pass size (MB): 2449.47 Params size (MB): 97.78 Estimated Total Size (MB): 2568.23 ```