Open
Conversation
Alcray
suggested changes
Jul 7, 2024
Comment on lines
+1
to
+5
| processors_to_run: "0:" | ||
| workspace_dir: /workspace/nemo_capstone | ||
| final_manifest: ${workspace_dir}/final_manifest.json | ||
|
|
||
| processors: |
Collaborator
There was a problem hiding this comment.
Please add
- Nvidia copyright text
- config documentation text
Collaborator
There was a problem hiding this comment.
Where do you use this docker compose file? Is it possible to run the scripts without it?
Comment on lines
+25
to
+27
| Make sure to install yt-dlp tool before funning this code. | ||
|
|
||
| Tool link: https://github.com/yt-dlp/yt-dlp |
Collaborator
There was a problem hiding this comment.
Since you use a 3rd party tool here, could you add a specific check in the script whether the tool is installed or not, and log message for user to install it?
Comment on lines
+29
to
+46
| Args: | ||
| raw_data_dir (str): Root directory of the files to be added to the manifest. Recursively searches for files with the given 'extension'. | ||
| output_field (str): Field to store the file paths in the dataset. Default is "audio_filepath". | ||
| extension (str): Extension of the files to include in the dataset. Default is "wav". | ||
| **kwargs: Additional keyword arguments for the base class `BaseParallelProcessor`. | ||
| """ | ||
|
|
||
| def __init__( | ||
| self, | ||
| raw_data_dir: str, | ||
| output_field: str = "audio_filepath", | ||
| # extension: str = "wav", | ||
| **kwargs, | ||
| ): | ||
| super().__init__(**kwargs) | ||
| self.raw_data_dir = Path(raw_data_dir) | ||
| self.output_field = output_field | ||
| file_path = "sdp/processors/datasets/ytdlp/search_terms.json" |
Collaborator
There was a problem hiding this comment.
- If you don't use an "extension", remove it from both the commented version and from documentation of the function
- For convenience we use "key" instead of "field". Replace output_field with output_key
- Maybe it would be more convenient to change file_path to more informative name? Also could you remove it's hardcoding, make it a variable passed from config file with default value?
Comment on lines
+28
to
+31
| Args: | ||
| links_filepath_field (str): Field to get the YouTube video link. | ||
| output_audio_path (str): Path to save the downloaded audio files. | ||
| **kwargs: Additional keyword arguments for the base class `BaseParallelProcessor`. |
Collaborator
There was a problem hiding this comment.
Please use "key" instead of field
Collaborator
There was a problem hiding this comment.
If you want to use this as an example, not as a working configuration, please mention somewhere how user should work with this file and remove any personal information from here, like the name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.