Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add slider in seg #76

Merged
merged 9 commits into from
May 19, 2022
Merged

[Feature] Add slider in seg #76

merged 9 commits into from
May 19, 2022

Conversation

geoyee
Copy link
Member

@geoyee geoyee commented Apr 27, 2022

添加了滑框预测,预测部分还是使用的predict,只是加了切片和拼接的工作。
调用如下:

model = slider_predict(
    img_file="xxx.tif", 
    save_dir="output", 
    block_size=512, 
    overlap=36, 
    transforms=None
)

结果保存在save_dir目录下,与img_file同名,文件为GEOTIFF。与原图叠加显示如下:
图片

paddlers/tasks/segmenter.py Outdated Show resolved Hide resolved
paddlers/tasks/segmenter.py Outdated Show resolved Hide resolved
paddlers/tasks/segmenter.py Outdated Show resolved Hide resolved
Copy link
Member

@Bobholamovic Bobholamovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@geoyee geoyee requested review from juncaipeng and removed request for LutaoChu April 28, 2022 08:04
@LutaoChu LutaoChu merged commit 4a97e46 into PaddleCV-SIG:develop May 19, 2022
@geoyee geoyee deleted the slider2 branch May 19, 2022 11:42
@geoyee geoyee mentioned this pull request May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants