Skip to content

Conversation

@Prathamesh8989
Copy link

@Prathamesh8989 Prathamesh8989 commented Feb 1, 2026

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

  • I used AI tools (e.g., GitHub Copilot, ChatGPT, etc.) in developing this PR
  • I understand all the code I'm submitting
  • 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

Copy link
Contributor

@henrykironde henrykironde left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution @Prathamesh8989

# Predict on large geospatial tiles using overlapping windows
# Initialize the DeepForest model
model = main.deepforest()
model.use_release() # Load a pretrained tree detection model
Copy link
Contributor

Choose a reason for hiding this comment

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

Use model.load_model(model_name="weecology/deepforest-tree", revision="main")

@Prathamesh8989
Copy link
Author

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.

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.

2 participants