From 543b74a40b863cca9b972f623925acd78c51d67f Mon Sep 17 00:00:00 2001 From: Bobholamovic Date: Mon, 19 Sep 2022 17:58:31 +0800 Subject: [PATCH] Update visualize comments --- paddlers/utils/visualize.py | 22 +++++++++------------ tools/prepare_dataset/prepare_isaid.py | 0 tools/prepare_dataset/prepare_massroad.py | 0 tools/prepare_dataset/prepare_rsc11.py | 0 tools/prepare_dataset/prepare_rsscn7.py | 0 tools/prepare_dataset/prepare_satehaze1k.py | 0 tools/prepare_dataset/prepare_ucmerced.py | 0 tools/prepare_dataset/prepare_whu.py | 0 8 files changed, 9 insertions(+), 13 deletions(-) create mode 100644 tools/prepare_dataset/prepare_isaid.py create mode 100644 tools/prepare_dataset/prepare_massroad.py create mode 100644 tools/prepare_dataset/prepare_rsc11.py create mode 100644 tools/prepare_dataset/prepare_rsscn7.py create mode 100644 tools/prepare_dataset/prepare_satehaze1k.py create mode 100644 tools/prepare_dataset/prepare_ucmerced.py create mode 100644 tools/prepare_dataset/prepare_whu.py diff --git a/paddlers/utils/visualize.py b/paddlers/utils/visualize.py index 7cfa2d7..42f923a 100644 --- a/paddlers/utils/visualize.py +++ b/paddlers/utils/visualize.py @@ -31,7 +31,7 @@ except: import gdal import osr -CHINATILES = ( +CHINA_TILES = ( "GeoQ China Community", "GeoQ China Street", "AMAP China", @@ -57,19 +57,15 @@ def map_display(mask_path: str, In Jupyter Notebook environments, leave `save_path` as None to display the result immediately in the notebook. Defaults to None. - tiles (str): Map tileset to use. Due to boundary question, - the map tileset provided by folium cannot be selected. - * Only can choose from this list: - - "GeoQ China Community", "GeoQ China Street" (from http://www.geoq.cn/) - - "AMAP China" (from https://www.amap.com/) - - "TencentMap China" (from https://map.qq.com/) - - "BaiduMaps China" (from https://map.baidu.com/) { - It is worked in some cases, but it is not recommended. - } + tiles (str): Map tileset to use. Chosen from the following list: + - "GeoQ China Community", "GeoQ China Street" (from http://www.geoq.cn/) + - "AMAP China" (from https://www.amap.com/) + - "TencentMap China" (from https://map.qq.com/) + - "BaiduMaps China" (from https://map.baidu.com/) Defaults to "GeoQ China Community". - These tileset have been corrected through the public algorithm on the Internet. + * All tilesets have been corrected through public algorithms from the Internet. * Please read the relevant terms of use carefully: - GeoQ [GISUNI] (http://geoq.cn/useragreement.html) - AMap [AutoNavi] (https://wap.amap.com/doc/serviceitem.html) @@ -80,8 +76,8 @@ def map_display(mask_path: str, folium.Map: An example of folium map. """ - if tiles not in CHINATILES: - raise ValueError("The `tiles` must in {}, not {}.".format(CHINATILES, + if tiles not in CHINA_TILES: + raise ValueError("The `tiles` must in {}, not {}.".format(CHINA_TILES, tiles)) fmap = Map( tiles=tiles, diff --git a/tools/prepare_dataset/prepare_isaid.py b/tools/prepare_dataset/prepare_isaid.py new file mode 100644 index 0000000..e69de29 diff --git a/tools/prepare_dataset/prepare_massroad.py b/tools/prepare_dataset/prepare_massroad.py new file mode 100644 index 0000000..e69de29 diff --git a/tools/prepare_dataset/prepare_rsc11.py b/tools/prepare_dataset/prepare_rsc11.py new file mode 100644 index 0000000..e69de29 diff --git a/tools/prepare_dataset/prepare_rsscn7.py b/tools/prepare_dataset/prepare_rsscn7.py new file mode 100644 index 0000000..e69de29 diff --git a/tools/prepare_dataset/prepare_satehaze1k.py b/tools/prepare_dataset/prepare_satehaze1k.py new file mode 100644 index 0000000..e69de29 diff --git a/tools/prepare_dataset/prepare_ucmerced.py b/tools/prepare_dataset/prepare_ucmerced.py new file mode 100644 index 0000000..e69de29 diff --git a/tools/prepare_dataset/prepare_whu.py b/tools/prepare_dataset/prepare_whu.py new file mode 100644 index 0000000..e69de29