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

how to test myself dataset? #137

Open
zjcs opened this issue Jul 3, 2024 · 1 comment
Open

how to test myself dataset? #137

zjcs opened this issue Jul 3, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@zjcs
Copy link

zjcs commented Jul 3, 2024

Describe the Feature

I want to test my data, i wanna ask how to test myself dataset?

Motivation

No response

Pitch

No response

Alternatives

No response

Additional context

No response

@zjcs zjcs added enhancement New feature or request help wanted Extra attention is needed labels Jul 3, 2024
@RoyYang0714
Copy link
Collaborator

We will update the documentation afterward. In Vis4D, a data pipeline has several components: a dataset class, a data pipe, a data loader, and a data connector.

Take the COCO detection dataset as an example. First, you need to implement your custom dataset class like COCO here, which is responsible for loading data and annotations with pre-defined common keys.

Then, through the example here, you can compose your dataset along with the desired data transform with our implemented data pipe and data loader to work with our trainer.

Finally, we rely on the data connector to propagate the data/output between the data loader, model, evaluator, and visualizer.
As the example here shows, these connectors connect data between the dataset and model. The dictionary key is the args for the model input, while the value is the key for the data dictionary after data augmentation.

More specifically, the following data connector will map the K.images from the data loader output to images args in the model forward.

CONN_BBOX_2D_TEST = {
    "images": K.images,
    "input_hw": K.input_hw,
    "original_hw": K.original_hw,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants