Skip to content

Docs for new features merged from samples_on_demand #130

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

Merged
merged 20 commits into from
Jun 5, 2025

Conversation

philipp-fischer
Copy link
Collaborator

@philipp-fischer philipp-fischer commented May 26, 2025

Adds docs for MR #111

Notes:
Decoding

  • New way to specify media decoding (now SampleDecoder class)
    • Old args auto_decode, image_decode, av_decode, video_decode_audio are now deprecated
class MyTaskEncoder(DefaultTaskEncoder):
    decoder = SampleDecoder(image_decode="pilrgb")

TaskEncoder

  • New methods preencode_sample and postencode_sample (optional replacement for encode_sample)

FileStore

  • New way to randomly access a prepared dataset using keys
  • Datasets can be used as auxiliary file stores

CachePool

  • Cache pools can be used to lazily fetch data in the background
  • This is useful for online packing where we know we will need say 8k samples in the future, but we don't know the order yet

Cookers

  • New cooker definition (in TE)
  • New cooker decorator args (need_cache, need_primary)
  • New (image/video-) decoder specification in TE directly

@philipp-fischer philipp-fischer marked this pull request as ready for review June 5, 2025 06:09
@philipp-fischer philipp-fischer requested a review from voegtlel June 5, 2025 06:09
Copy link
Collaborator

@voegtlel voegtlel left a comment

Choose a reason for hiding this comment

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

First comments for crude

Copy link
Collaborator

@voegtlel voegtlel left a comment

Choose a reason for hiding this comment

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

More comments

@philipp-fischer philipp-fischer merged commit 667f463 into develop Jun 5, 2025
8 checks passed
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