Science Score: 64.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org, scholar.google -
✓Committers with academic emails
1 of 1 committers (100.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.1%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: zhang-tao-whu
- License: apache-2.0
- Language: Jupyter Notebook
- Default Branch: master
- Size: 17 MB
Statistics
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 2
- Releases: 0
Metadata Files
README.md
Install
```shell
create the conda env
conda create -n p2pformer python=3.9 conda activate p2pformer
install the pytorch 1.x,
pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117
install the mmcv
pip install opemim mim install mmcv-full==1.7.2
install the mmdet and p2pformer
pip install -e . ```
Prepare datas
Download the WHU, WHU-Mix and CrowdAI datastes, then change the data path in whu_line.py, whu-mix_line.py and crowdAI_line.
Model Zoo
The pretrained weights are available at here.
Getting Started
train
```shell
on whu dataset
PYTHONPATH=. bash tools/disttrain.sh p2pformer/configs/retrain/p2p2formercorner_whu.py 8
on whu-mix dataset
PYTHONPATH=. bash tools/disttrain.sh p2pformer/configs/retrain/p2p2formercorner_whu-mix.py 8
on crowdai dataset
PYTHONPATH=. bash tools/dist_train.sh p2pformer/configs/retrain/crowdai.py 8 ```
test
```shell
on whu dataset
PYTHONPATH=. bash tools/disttest.sh p2pformer/configs/retrain/p2p2formercorner_whu.py /path/to/model.pth 8
on whu-mix dataset
PYTHONPATH=. bash tools/disttrain.sh p2pformer/configs/retrain/p2p2formercorner_whu-mix.py /path/to/model.pth 8
on crowdai dataset
PYTHONPATH=. bash tools/dist_train.sh p2pformer/configs/retrain/crowdai.py /path/to/model.pth 8 ```
visualization
- Please uncomment lines 229-231 in p2pformer.py, and the polygon prediction results will be stored in
work_dirs/json_preds/. - Run the test script or demo script.
- Run the polygon_show.py to obtain the visualization results.
BibTeX
@article{zhang2024p2pformer,
title={P2PFormer: A Primitive-to-polygon Method for Regular Building Contour Extraction from Remote Sensing Images},
author={Zhang, Tao and Wei, Shiqing and Zhou, Yikang and Luo, Muying and Yu, Wenling and Ji, Shunping},
journal={IEEE Transactions on Geoscience and Remote Sensing},
year={2024},
publisher={IEEE}
}
Owner
- Name: zhangtao
- Login: zhang-tao-whu
- Kind: user
- Website: https://zhang-tao-whu.github.io/
- Repositories: 23
- Profile: https://github.com/zhang-tao-whu
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - name: "MMDetection Contributors" title: "OpenMMLab Detection Toolbox and Benchmark" date-released: 2018-08-22 url: "https://github.com/open-mmlab/mmdetection" license: Apache-2.0
GitHub Events
Total
- Issues event: 2
- Watch event: 23
- Push event: 1
- Fork event: 2
- Create event: 2
Last Year
- Issues event: 2
- Watch event: 23
- Push event: 1
- Fork event: 2
- Create event: 2
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| zhang tao | z****o@w****n | 2 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 2
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 2
- Total pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 2
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 2
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- briliantnugraha (1)
- non-errors (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- pytorch/pytorch ${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel build
- pytorch/pytorch ${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel build
- asynctest *
- cityscapesscripts *
- codecov *
- cython *
- flake8 *
- imagecorruptions *
- interrogate *
- isort ==4.3.21
- kwarray *
- matplotlib *
- mmcv-full >=1.3.17
- mmtrack *
- numpy *
- onnx ==1.7.0
- onnxruntime >=1.8.0
- protobuf <=3.20.1
- pycocotools *
- pytest *
- scipy *
- six *
- sklearn *
- terminaltables *
- timm *
- ubelt *
- xdoctest >=0.10.0
- yapf *
- albumentations >=0.3.2
- cython *
- numpy *
- docutils ==0.16.0
- myst-parser *
- sphinx ==4.0.2
- sphinx-copybutton *
- sphinx_markdown_tables *
- sphinx_rtd_theme ==0.5.2
- mmcv-full >=1.3.17
- cityscapesscripts *
- imagecorruptions *
- scipy *
- sklearn *
- timm *
- mmcv *
- torch *
- torchvision *
- matplotlib *
- numpy *
- pycocotools *
- six *
- terminaltables *
- asynctest * test
- codecov * test
- flake8 * test
- interrogate * test
- isort ==4.3.21 test
- kwarray * test
- onnx ==1.7.0 test
- onnxruntime >=1.8.0 test
- protobuf <=3.20.1 test
- pytest * test
- ubelt * test
- xdoctest >=0.10.0 test
- yapf * test
- numpy ==1.23.5
- scipy *
- shapely *
- visualizer *