NVIDIA / NVIDIA/DALI

Grab one sample from pipeline for shaping and reset pipeline

Open
#5,275 6 comments 0 reactions 1 assignee View on GitHub

@JanuszL is already working on this.

Since Jan 15, 2024.

question
Dominant language
C++
Stars
5.8k
Forks
678
Avg merge
3d 1h
Merged PRs (30d)
27

Description

Describe the question.

Is it possible to grab a single sample of (imgs, labels) from the pipeline and reset it? This is mainly for shape checking.

I see in the docs that:

  • pipe.reset() is only usable at the end of iteration?
  • If I iterate the pipeline for one step the pipeline is missing 1 minibatch for training.

Why?

  • Want to grab shaping / labels for model creation, etc.
Check for duplicates
  • I have searched the open bugs/issues and have found no duplicates for this bug report

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.