docs: Improve predict_tile documentation with examples and tips
Summary
This PR enhances the predict_tile user guide by adding detailed tips and parameter explanations to improve clarity for new users.
Improvements Included
-
Added Key Parameters
Included a clear breakdown of:patch_sizepatch_overlapdataloader_strategy
-
New Example Usage
Added a clean, standalone code block demonstrating tiled prediction on large rasters. -
Grammar & Flow
Refined the documentation text for improved readability and a more professional tone. -
Code Consistency
- Standardized variable naming to consistently use
model - Added missing
pandasandosimports in thepredict_filesection
- Standardized variable naming to consistently use
Related Issue(s)
This change improves guidance for handling large geospatial raster images, particularly around memory management and patch sizing during prediction.
AI-Assisted Development
- [x] I used AI tools (e.g., GitHub Copilot, ChatGPT, etc.) in developing this PR
- [x] I understand all the code I'm submitting
- [x] I have reviewed and validated all AI-generated code
AI Tools Used
- ChatGPT: Used for correcting grammatical issues and improving the flow of documentation text
- Gemini: Used for structuring the documentation merge and verifying Python code consistency
Hi @henrykironde ,
Thanks for the suggestion! I’ve updated the documentation to use model.load_model(model_name="weecology/deepforest-tree", revision="main") instead of model.use_release() and pushed the changes.
Hi @jveitchmichaelis,
Thanks for the feedback — I’ve updated the documentation to correct the return types, removed the invalid raster-saving example, clarified the visualization section, and reverted the unintended .gitignore change.
Looking forward to your review.
This pull request has been marked stale because it has been labeled "Awaiting author contribution" with no activity for 30 days. It will be closed in 14 days if no further activity occurs. Comment on the pull request to keep it open.