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

Adding loader for DCASE'23 Task 6A #144

Merged
merged 4 commits into from
Dec 1, 2023

Conversation

tanmayy24
Copy link
Collaborator

Description

Please include the following information at the top level docstring for the dataset's module mydataset.py:

  • Describe annotations included in the dataset
  • Indicate the total duration of the dataset in hours, and (optionally) also list the number of individual files
  • Mention the origin of the dataset (e.g. creator, institution)
  • Describe the type of audio included in the dataset
  • Indicate any relevant papers related to the dataset
  • Include a description about how the data can be accessed and the license it uses (if applicable)

Dataset loaders checklist:

  • Create a script in scripts/, e.g. make_my_dataset_index.py, which generates an index file.
  • Run the script on the canonical version of the dataset and save the index in soundata/indexes/ e.g. my_dataset_index.json.
  • Create a module in soundata, e.g. soundata/my_dataset.py.
  • Create tests for your loader in tests/, e.g. test_my_dataset.py.
  • Add your module to docs/source/soundata.rst and docs/source/quick_reference.rst.
  • Run black, flake8 and mypy (see Running your tests locally).
  • Run tests/test_full_dataset.py on your dataset.
  • Check that codecov coverage does not decrease.

Copy link

codecov bot commented Dec 1, 2023

Codecov Report

Merging #144 (e775abf) into tanmay/dcase23_6b (c9b748f) will increase coverage by 0.03%.
Report is 2 commits behind head on tanmay/dcase23_6b.
The diff coverage is 100.00%.

❗ Current head e775abf differs from pull request most recent head 76a9ecd. Consider uploading reports for the commit 76a9ecd to get more accurate results

Additional details and impacted files
@@                  Coverage Diff                  @@
##           tanmay/dcase23_6b     #144      +/-   ##
=====================================================
+ Coverage              98.73%   98.76%   +0.03%     
=====================================================
  Files                     30       31       +1     
  Lines                   2603     2677      +74     
=====================================================
+ Hits                    2570     2644      +74     
  Misses                    33       33              

Copy link
Collaborator

@guillemcortes guillemcortes left a comment

Choose a reason for hiding this comment

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

I see that you have included the changes of task6b into this PR, should we delete the #143, then? The comments here are the same there. Basically docstring, DictReader and change PARSER to parser

file_path = os.path.join(self.data_home, file_name)
delimiter = ";" if file_type == "test_metadata" else ","
with open(file_path, encoding="ISO-8859-1") as csv_file:
csv_reader = csv.reader(csv_file, delimiter=delimiter)
Copy link
Collaborator

Choose a reason for hiding this comment

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

DictReader?

file_path = os.path.join(self.data_home, file_name)
# Now open the file with the mentioned encoding
with open(file_path, encoding="ISO-8859-1") as csv_file:
csv_reader = csv.reader(csv_file, delimiter=",")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use DictReader?

@@ -0,0 +1,349 @@
"""DCASE 2023 Task-6B Dataset Loader
Copy link
Collaborator

Choose a reason for hiding this comment

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

Double check docstring

@@ -0,0 +1,349 @@
"""DCASE 2023 Task-6A Dataset Loader
Copy link
Collaborator

Choose a reason for hiding this comment

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

Double check docstring

@tanmayy24 tanmayy24 changed the base branch from main to tanmay/dcase23_6b December 1, 2023 14:57
@tanmayy24 tanmayy24 merged commit 8c2326f into tanmay/dcase23_6b Dec 1, 2023
1 check was pending
@magdalenafuentes magdalenafuentes deleted the tanmay/dcase'23task6a branch February 6, 2024 21:45
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.

None yet

3 participants