Skip to content

added audio_dataset.py#16388

Merged
copybara-service[bot] merged 33 commits intokeras-team:masterfrom
hazemessamm:master
Apr 21, 2022
Merged

added audio_dataset.py#16388
copybara-service[bot] merged 33 commits intokeras-team:masterfrom
hazemessamm:master

Conversation

@hazemessamm
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Collaborator

@fchollet fchollet left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. This is great!

Please add corresponding unit tests in audio_dataset_test.py.

Copy link
Copy Markdown
Collaborator

@fchollet fchollet left a comment

Choose a reason for hiding this comment

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

Thanks for the update! The tests look good.

One last thing: please add support for the subset="both" API like in this PR: https://github.com/keras-team/keras/pull/16390/files

Copy link
Copy Markdown
Collaborator

@fchollet fchollet left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Apr 11, 2022
@google-ml-butler google-ml-butler bot removed the ready to pull Ready to be merged into the codebase label Apr 11, 2022
@gbaned gbaned requested a review from fchollet April 11, 2022 15:12
@google-ml-butler google-ml-butler bot added the keras-team-review-pending Pending review by a Keras team member. label Apr 11, 2022
Copy link
Copy Markdown
Collaborator

@fchollet fchollet left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for the great contribution! 👍

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Apr 17, 2022
@fchollet
Copy link
Copy Markdown
Collaborator

@hazemessamm
Copy link
Copy Markdown
Contributor Author

It seems there are test failures, please take a look. https://source.cloud.google.com/results/invocations/44f7b725-0b1e-4576-b30f-a88bbddfbdbc/targets/keras%2Fgithub%2Fubuntu%2Fcpu%2Fpresubmit/log

The test failures are because of the imports. ModuleNotFoundError: No module named 'keras.utils.audio_dataset' . I thought that I should import it by adding keras.utils but it seems that it cannot find it. Is there any other file I should edit to include audio_dataset ?

@google-ml-butler google-ml-butler bot removed the ready to pull Ready to be merged into the codebase label Apr 17, 2022
@hazemessamm
Copy link
Copy Markdown
Contributor Author

It seems there are test failures, please take a look. https://source.cloud.google.com/results/invocations/44f7b725-0b1e-4576-b30f-a88bbddfbdbc/targets/keras%2Fgithub%2Fubuntu%2Fcpu%2Fpresubmit/log

The test failures are because of the imports. ModuleNotFoundError: No module named 'keras.utils.audio_dataset' . I thought that I should import it by adding keras.utils but it seems that it cannot find it. Is there any other file I should edit to include audio_dataset ?

I think the problem was that I did not add edit the BUILD file and I edited it.

Copy link
Copy Markdown
Collaborator

@fchollet fchollet left a comment

Choose a reason for hiding this comment

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

I think you will also need to list audio_dataset in the utils library in the BUILD file, here:

py_library(
    name = "utils",
    srcs = [
        "__init__.py",
    ],
    srcs_version = "PY3",
    deps = [
        ":data_utils",
        ":generic_utils",
        ":image_dataset",
        ":image_utils",
        ":layer_utils",
        ":np_utils",
        ":text_dataset",
        ":timeseries_dataset",
        ":vis_utils",
    ],
)

@hazemessamm
Copy link
Copy Markdown
Contributor Author

I think you will also need to list audio_dataset in the utils library in the BUILD file, here:

py_library(
    name = "utils",
    srcs = [
        "__init__.py",
    ],
    srcs_version = "PY3",
    deps = [
        ":data_utils",
        ":generic_utils",
        ":image_dataset",
        ":image_utils",
        ":layer_utils",
        ":np_utils",
        ":text_dataset",
        ":timeseries_dataset",
        ":vis_utils",
    ],
)

I Added it.

@hazemessamm
Copy link
Copy Markdown
Contributor Author

LGTM, thank you for the great contribution! 👍

You are welcome 🙏🏻

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Apr 20, 2022
@fchollet
Copy link
Copy Markdown
Collaborator

To confirm, your email address registered with your GitHub account is hazemessam199@gmail.com? It seems your commits aren't signed with an email address, which can lead to loss of authorship tracking in the git history.

@hazemessamm
Copy link
Copy Markdown
Contributor Author

hazemessamm commented Apr 21, 2022

To confirm, your email address registered with your GitHub account is hazemessam199@gmail.com? It seems your commits aren't signed with an email address, which can lead to loss of authorship tracking in the git history.

Yes, this email address is registered with my GitHub account but it's not the primary one, I don't know why my commits are not signed and I will check it.

@fchollet
Copy link
Copy Markdown
Collaborator

I've set the merge commits to be signed with your registered email, hopefully that will work.

@copybara-service copybara-service bot merged commit ee82ad4 into keras-team:master Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to pull Ready to be merged into the codebase size:M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants