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

Update progress callback to include current image index and total images #19

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

Jordan-Pierce
Copy link
Owner

Update the progress_callback function and YoloTiler class to provide current image index and total images.

  • tests/test_yolo_tiler.py

    • Modify progress_callback to include current_image_idx and total_images.
    • Enable progress_callback in the tiler.run() call.
  • yolo_tiler/yolo_tiler.py

    • Update TileProgress class to include current_image_idx and total_images.
    • Modify tile_image method to accept current_image_idx and total_images as parameters.
    • Update run method to process images and update current_image_idx and total_images for the callback function.

Update the `progress_callback` function and `YoloTiler` class to provide current image index and total images.

* **tests/test_yolo_tiler.py**
  - Modify `progress_callback` to include `current_image_idx` and `total_images`.
  - Enable `progress_callback` in the `tiler.run()` call.

* **yolo_tiler/yolo_tiler.py**
  - Update `TileProgress` class to include `current_image_idx` and `total_images`.
  - Modify `tile_image` method to accept `current_image_idx` and `total_images` as parameters.
  - Update `run` method to process images and update `current_image_idx` and `total_images` for the callback function.
@Jordan-Pierce Jordan-Pierce merged commit 5f6a586 into update-tileprogress Jan 14, 2025
@Jordan-Pierce Jordan-Pierce deleted the update-progress-callback branch January 14, 2025 16:28
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.

1 participant