buildseg is a building extraction plugin of QGIS based on PaddlePaddle.

Overview

buildseg

Python 3.8 PaddlePaddle 2.2 QGIS 3.16.11

buildseg is a building extraction plugin of QGIS based on PaddlePaddle.

gasd

TODO

  • Extract building on 512x512 remote sensing images.
  • Extract building on big remote sensing images through sliding frame and splicing.
  • Replace the model and parameters (large-scale data).
  • Convert to static weight.
  • Hole digging inside polygon.
  • Convert raster to shapefile by GIS instead of findContours in OpenCV.
  • Update plugin's UI.
  • Accelerate, etc.
You might also like...
Multi-Modal Machine Learning toolkit based on PaddlePaddle.
Multi-Modal Machine Learning toolkit based on PaddlePaddle.

简体中文 | English PaddleMM 简介 飞桨多模态学习工具包 PaddleMM 旨在于提供模态联合学习和跨模态学习算法模型库,为处理图片文本等多模态数据提供高效的解决方案,助力多模态学习应用落地。 近期更新 2022.1.5 发布 PaddleMM 初始版本 v1.0 特性 丰富的任务

Awesome Remote Sensing Toolkit based on PaddlePaddle.
Awesome Remote Sensing Toolkit based on PaddlePaddle.

基于飞桨框架开发的高性能遥感图像处理开发套件,端到端地完成从训练到部署的全流程遥感深度学习应用。 最新动态 PaddleRS 即将发布alpha版本!欢迎大家试用 简介 PaddleRS是遥感科研院所、相关高校共同基于飞桨开发的遥感处理平台,支持遥感图像分类,目标检测,图像分割,以及变化检测等常用遥

A PaddlePaddle version image model zoo.

Paddle-Image-Models English | 简体中文 A PaddlePaddle version image model zoo. Install Package Install by pip: $ pip install ppim Install by wheel package

Plaything for Autistic Children (demo for PaddlePaddle/Wechaty/Mixlab project)
Plaything for Autistic Children (demo for PaddlePaddle/Wechaty/Mixlab project)

星星的孩子 - 一款为孤独症孩子设计的聊天机器人游戏 孤独症儿童是目前常常被忽视的一类群体。他们有着类似性格内向的特征,实际却受着广泛性发育障碍的折磨。 项目背景 这类儿童在与人交往时存在着沟通障碍,其特点表现在: 社交交流差,互动障碍明显 认知能力有限,被动认知 兴趣狭窄,重复刻板,缺乏变化和想象

Official PaddlePaddle implementation of Paint Transformer
Official PaddlePaddle implementation of Paint Transformer

Paint Transformer: Feed Forward Neural Painting with Stroke Prediction [Paper] [Paddle Implementation] Update We have optimized the serial inference p

An implementation of paper `Real-time Convolutional Neural Networks for Emotion and Gender Classification` with PaddlePaddle.
An implementation of paper `Real-time Convolutional Neural Networks for Emotion and Gender Classification` with PaddlePaddle.

简介 通过PaddlePaddle框架复现了论文 Real-time Convolutional Neural Networks for Emotion and Gender Classification 中提出的两个模型,分别是SimpleCNN和MiniXception。利用 imdb_crop

PaddleViT: State-of-the-art Visual Transformer and MLP Models for PaddlePaddle 2.0+
PaddleViT: State-of-the-art Visual Transformer and MLP Models for PaddlePaddle 2.0+

PaddlePaddle Vision Transformers State-of-the-art Visual Transformer and MLP Models for PaddlePaddle 🤖 PaddlePaddle Visual Transformers (PaddleViT or

🔥🔥High-Performance Face Recognition Library on PaddlePaddle & PyTorch🔥🔥
🔥🔥High-Performance Face Recognition Library on PaddlePaddle & PyTorch🔥🔥

face.evoLVe: High-Performance Face Recognition Library based on PaddlePaddle & PyTorch Evolve to be more comprehensive, effective and efficient for fa

🔥🔥High-Performance Face Recognition Library on PaddlePaddle & PyTorch🔥🔥
🔥🔥High-Performance Face Recognition Library on PaddlePaddle & PyTorch🔥🔥

face.evoLVe: High-Performance Face Recognition Library based on PaddlePaddle & PyTorch Evolve to be more comprehensive, effective and efficient for fa

Comments
  • ValueError: negative dimensions are not allowed

    ValueError: negative dimensions are not allowed

    After New Fix d6c37f56e78bbb5717a837f3f5aa35a8acbdde2c

    An error has occurred while executing Python code:

    An error has occurred while executing Python code: 
    
    ValueError: negative dimensions are not allowed 
    Traceback (most recent call last):
      File "C:\Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\buildseg\buildSeg.py", line 237, in run
        img = layer2array(layers, i, j, grid_size, overlap)
      File "C:\Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\buildseg\utils\convert.py", line 37, in layer2array
        array_list.append(raster_to_uint8(get_grid(band, row, col, \
      File "C:\Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\buildseg\utils\convert.py", line 59, in get_grid
        result = gd.ReadAsArray(xoff=int(xoff), yoff=int(yoff), \
      File "C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\GDAL-3.4.0-py3.9-win-amd64.egg\osgeo\gdal.py", line 3653, in ReadAsArray
        return gdal_array.BandReadAsArray(self, xoff, yoff,
      File "C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\GDAL-3.4.0-py3.9-win-amd64.egg\osgeo\gdal_array.py", line 422, in BandReadAsArray
        buf_obj = numpy.empty([buf_ysize, buf_xsize], dtype=typecode)
    ValueError: negative dimensions are not allowed
    
    
    Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] 
    QGIS version: 3.16.13-Hannover Hannover, a8618a94 
    
    Python Path:
    C:\Users\Youss\AppData\Roaming\Python\Python39\site-packages\paddle\fluid\..\libs
    C:/PROGRA~1/QGIS31~1.13/apps/qgis-ltr/./python
    C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python
    C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
    C:/PROGRA~1/QGIS31~1.13/apps/qgis-ltr/./python/plugins
    C:\Program Files\QGIS 3.16.13\bin\python39.zip
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\DLLs
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib
    C:\Program Files\QGIS 3.16.13\bin
    C:\Users\Youss\AppData\Roaming\Python\Python39\site-packages
    C:\PROGRA~1\QGIS31~1.13\apps\Python39
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\GDAL-3.4.0-py3.9-win-amd64.egg
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\win32
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\win32\lib
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\Pythonwin
    C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python
    C:\Users\Youss\AppData\Roaming\Python\Python39\site-packages\paddle\fluid\proto
    C:/Users/Youss/Documents/qgis-projects/ml-results
    

    image

    bug 
    opened by Youssef-Harby 0
  • ValueError: (InvalidArgument) Pass tensorrt_subgraph_pass has not been registered. Please use the paddle inference library compiled with tensorrt or disable the tensorrt engine in inference configuration!   [Hint: Expected Has(pass_type) == true, but received Has(pass_type):0 != true:1.] (at ..\paddle/fluid/framework/ir/pass.h:236)

    ValueError: (InvalidArgument) Pass tensorrt_subgraph_pass has not been registered. Please use the paddle inference library compiled with tensorrt or disable the tensorrt engine in inference configuration! [Hint: Expected Has(pass_type) == true, but received Has(pass_type):0 != true:1.] (at ..\paddle/fluid/framework/ir/pass.h:236)

    After fff353c53be942071896f75282b32f75ed5fa479

    An error has occurred while executing Python code: 
    
    ValueError: (InvalidArgument) Pass tensorrt_subgraph_pass has not been registered. Please use the paddle inference library compiled with tensorrt or disable the tensorrt engine in inference configuration!   [Hint: Expected Has(pass_type) == true, but received Has(pass_type):0 != true:1.] (at ..\paddle/fluid/framework/ir/pass.h:236) 
    Traceback (most recent call last):
      File "C:\Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\buildseg\buildSeg.py", line 199, in select_params_file
        self.infer_worker.load_model(self.model_file, self.param_file, \
      File "C:\Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\buildseg\utils\infer.py", line 36, in load_model
        self.predictor = paddle_infer.create_predictor(config)  # Create predictor from config
    ValueError: (InvalidArgument) Pass tensorrt_subgraph_pass has not been registered. Please use the paddle inference library compiled with tensorrt or disable the tensorrt engine in inference configuration! 
      [Hint: Expected Has(pass_type) == true, but received Has(pass_type):0 != true:1.] (at ..\paddle/fluid/framework/ir/pass.h:236)
    
    
    
    Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] 
    QGIS version: 3.16.13-Hannover Hannover, a8618a94 
    
    Python Path:
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\paddle\fluid\..\libs
    C:/PROGRA~1/QGIS31~1.13/apps/qgis-ltr/./python
    C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python
    C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
    C:/PROGRA~1/QGIS31~1.13/apps/qgis-ltr/./python/plugins
    C:\Program Files\QGIS 3.16.13\bin\python39.zip
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\DLLs
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib
    C:\Program Files\QGIS 3.16.13\bin
    C:\Users\Youss\AppData\Roaming\Python\Python39\site-packages
    C:\PROGRA~1\QGIS31~1.13\apps\Python39
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\GDAL-3.4.0-py3.9-win-amd64.egg
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\win32
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\win32\lib
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\Pythonwin
    C:/Users/Youss/AppData/Roaming/QGIS/QGIS3\profiles\default/python
    C:\PROGRA~1\QGIS31~1.13\apps\Python39\lib\site-packages\paddle\fluid\proto
    C:/Users/Youss/Documents/qgis-projects/ml-results
    

    image

    bug 
    opened by Youssef-Harby 5
Owner
Yizhou Chen
Yizhou Chen
rastrainer is a QGIS plugin to training remote sensing semantic segmentation model based on PaddlePaddle.

rastrainer rastrainer is a QGIS plugin to training remote sensing semantic segmentation model based on PaddlePaddle. UI TODO Init UI. Add Block. Add l

deepbands 5 Mar 4, 2022
Deep Learning Datasets Maker is a QGIS plugin to make datasets creation easier for raster and vector data.

Deep Learning Dataset Maker Deep Learning Datasets Maker is a QGIS plugin to make datasets creation easier for raster and vector data. How to use Down

deepbands 25 Dec 15, 2022
This repository contains the code for our fast polygonal building extraction from overhead images pipeline.

Polygonal Building Segmentation by Frame Field Learning We add a frame field output to an image segmentation neural network to improve segmentation qu

Nicolas Girard 186 Jan 4, 2023
API for RL algorithm design & testing of BCA (Building Control Agent) HVAC on EnergyPlus building energy simulator by wrapping their EMS Python API

RL - EmsPy (work In Progress...) The EmsPy Python package was made to facilitate Reinforcement Learning (RL) algorithm research for developing and tes

null 20 Jan 5, 2023
Object detection and instance segmentation toolkit based on PaddlePaddle.

Object detection and instance segmentation toolkit based on PaddlePaddle.

null 9.3k Jan 2, 2023
Paddle-Adversarial-Toolbox (PAT) is a Python library for Deep Learning Security based on PaddlePaddle.

Paddle-Adversarial-Toolbox Paddle-Adversarial-Toolbox (PAT) is a Python library for Deep Learning Security based on PaddlePaddle. Model Zoo Common FGS

AgentMaker 17 Nov 8, 2022
Remote sensing change detection tool based on PaddlePaddle

PdRSCD PdRSCD(PaddlePaddle Remote Sensing Change Detection)是一个基于飞桨PaddlePaddle的遥感变化检测的项目,pypi包名为ppcd。目前0.2版本,最新支持图像列表输入的训练和预测,如多期影像、多源影像甚至多期多源影像。可以快速完

null 38 Aug 31, 2022
End-to-end image segmentation kit based on PaddlePaddle.

English | 简体中文 PaddleSeg PaddleSeg has released the new version including the following features: Our team won the AutoNUE@CVPR 2021 challenge, where

null 6.2k Jan 2, 2023
Large-scale open domain KNOwledge grounded conVERsation system based on PaddlePaddle

Knover Knover is a toolkit for knowledge grounded dialogue generation based on PaddlePaddle. Knover allows researchers and developers to carry out eff

null 607 Dec 31, 2022
Classical OCR DCNN reproduction based on PaddlePaddle framework.

Paddle-SVHN Classical OCR DCNN reproduction based on PaddlePaddle framework. This project reproduces Multi-digit Number Recognition from Street View I

null 1 Nov 12, 2021