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

[notebooks] add jupyter notebook introducing how to merge datasets #738

Merged

Conversation

bonhunko
Copy link
Contributor

@bonhunko bonhunko commented Oct 6, 2022

Summary

Add a jupyter sample introducing how to merge datasets.

How to test

Check the jupyter notebook results.

In the first example, we import 'mnist' and 'mnist_csv' datasets.
Note that their data format is the same as mnist but the data of former is stored as pickle and the latter as csv.
Then, we export the merged dataset to single dataset.

In the second example, we import two heterogeneous datasets and export a merged dataset into a unified data format.
First, we import two sample datasets that the data formats of them are COCO detection, VOC detection, respectively.
Then, we will export the merged dataset as Yolo format

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@@ -0,0 +1,172 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Line #2.    os.system('ls -l merged_dataset')

Can we list only names by ls merged_dataset . You can also use Jupyter magic command rather than using os.system().


Reply via ReviewNB

Copy link
Contributor

Choose a reason for hiding this comment

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

e.g. !ls merged_dataset

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool.

@@ -0,0 +1,301 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Line #2.    os.system('ls -l merged_dataset')

Same here.


Reply via ReviewNB

Copy link
Contributor

@vinnamkim vinnamkim left a comment

Choose a reason for hiding this comment

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

LGTM.

@bonhunko bonhunko changed the title [sample] add jupyter sample introducing how to merge datasets [notebooks] add jupyter notebook introducing how to merge datasets Oct 6, 2022
Copy link
Contributor

@wonjuleee wonjuleee left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@wonjuleee wonjuleee merged commit 5ff089d into openvinotoolkit:develop Oct 13, 2022
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.

3 participants