DSGT-DLP / Deep-Learning-Playground

Web Application where people new to Deep Learning can input a dataset and toy around with basic Pytorch modules without writing any code
MIT License
26 stars 8 forks source link

[FEATURE]: Integrate UrbanSoundDataset for Audio Trainspace #1156

Open codingwithsurya opened 7 months ago

codingwithsurya commented 7 months ago

Feature Name

As part of our initiative to extend the Deep Learning Playground's capabilities to include audio data processing, we need to integrate the UrbanSoundDataset into our system.

Your Name

Surya Subramanian

Description

Description

This task involves enhancing the training/core/dataset.py module to support audio data, specifically focusing on the UrbanSound8K dataset. The goal is to create a seamless pipeline for data ingestion, preprocessing, and loading, tailored for audio files.

Objectives

Take inspiration from the other classes in dataset.py and develop dataCreator, train_loader, and test_loader methods to facilitate the loading of preprocessed audio data into the model for training and testing. Ensure that data loading is efficient and integrates well with PyTorch's DataLoader mechanism. Essentially, the code in this class will be used to create train and test datasets.

Implementation Details

Your best bet is to take inspiration from ImageDefaultDatasetCreator and "recreate" that but for the UrbanSoundDataset. It should be seamless for us to call the createTrainDataset() and createTestDataset() methods from other files (like how it is being used called in training/training/routes/image/image.py.

So in summary,

# no layer params

# hardcode non tunable params in

# class AudioParams(Schema):
#     name: str
#     problem_type: Literal["CLASSIFICATION"]
#     default: Urban Sound Dataset
#     criterion: negative log likelihood loss
#     optimizer_name: Adam 
#     shuffle: bool
#     epochs: int
#     test_size: float
#     batch_size: int
#     user_arch: arch we are using 

Feel free to play around with this!

github-actions[bot] commented 7 months ago

Hello @codingwithsurya! Thank you for submitting the Feature Request Form. We appreciate your contribution. :wave:

We will look into it and provide a response as soon as possible.

To work on this feature request, you can follow these branch setup instructions:

  1. Checkout the main branch:

     git checkout nextjs
  2. Pull the latest changes from the remote main branch:

     git pull origin nextjs
  3. Create a new branch specific to this feature request using the issue number:

     git checkout -b feature-1156

    Feel free to make the necessary changes in this branch and submit a pull request when you're ready.

    Best regards, Deep Learning Playground (DLP) Team

noah-iversen commented 2 weeks ago

@arsbw2802