DeepForest icon indicating copy to clipboard operation
DeepForest copied to clipboard

docs: Improve predict_tile documentation with examples and tips

Open Prathamesh8989 opened this issue 10 months ago • 2 comments

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_size
    • patch_overlap
    • dataloader_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 pandas and os imports in the predict_file section

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

Prathamesh8989 avatar Feb 01 '26 16:02 Prathamesh8989

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.

Prathamesh8989 avatar Feb 02 '26 08:02 Prathamesh8989

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.

Prathamesh8989 avatar Feb 08 '26 06:02 Prathamesh8989

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.

github-actions[bot] avatar Aug 18 '26 02:08 github-actions[bot]