CNN-Sentinel | Analyzing Sentinel-2 satellite data | Machine Learning library
kandi X-RAY | CNN-Sentinel Summary
kandi X-RAY | CNN-Sentinel Summary
Overview about state-of-the-art land-use classification from satellite data with CNNs based on an open dataset.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get the mean and standard deviation of the image
- Generate an image generator
- Preprocessing preprocessing
- Create a categorical label from full files
- Preprocessing for images
CNN-Sentinel Key Features
CNN-Sentinel Examples and Code Snippets
Community Discussions
Trending Discussions on CNN-Sentinel
QUESTION
I am trying to do semantic segmentation using Unet from segmentation model for multi channel (>3) image. The code works if the batch_size =1. But if I change the batch_size to other values (e.g. 2) then error occurs (InvalidArgumentError: Incompatible shapes):
...ANSWER
Answered 2020-Sep-23 at 10:59This error was solved by redefining a new image generator instead of simple_image_generator(). The simple_image_generator() worked well with the shape of the images (8 Bands) but did not cope well with the shape of the mask (1 band ).
During the execution, image_generator had 4 dimensions with [2,256,256,1] ( i.e. batch_size, (image size), bands) BUT mask_generator had 3 dimensions only vs. [2,256,256] (i.e. batch_size,(image size))
So reshaping the mask of [2,256,256] to [2,256,256, 1] solved the issue.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CNN-Sentinel
Keras
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page