Open codingwithsurya opened 12 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:
Checkout the main branch:
git checkout nextjs
Pull the latest changes from the remote main branch:
git pull origin nextjs
Create a new branch specific to this feature request using the issue number:
git checkout -b feature-1057
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
Can helpful if more details are given about what train & test transforms are in terms of swe terms (object structure of a train and test transform, effects on training, etc)
Can helpful if more details are given about what train & test transforms are in terms of swe terms (object structure of a train and test transform, effects on training, etc)
hmm i think i see what your saying but could you be more specific? Just want to make sure I address everything correctly.
@codingwithsurya , I think @dwu359 meant an example of what a valid sequence of train and test transforms can look like. Like, what will the datatype be?
@codingwithsurya , I think @dwu359 meant an example of what a valid sequence of train and test transforms can look like. Like, what will the datatype be?
got it. Just updated the issue with more specific info. Please take a look @karkir0003 .
Let me know if you have any other questions @Keon-San
lgtm @codingwithsurya
for the json thingy, this lines up with how the other api endpoints parse the params?
for the json thingy, this lines up with how the other api endpoints parse the params?
not sure about that. I just gave a general example, but hope that gives you an idea @Keon-San
Feature Name
Optional Train and Test Transforms for Image Training Endpoint in Django Migration
Your Name
Surya Subramanian
Description
After migrating our image training endpoint from Flask Blueprint to Django, we identified the need for supporting train and test transforms. This feature should be available for user-specified datasets in the frontend, and these parameters should be optional.
Transforms are methods applied to the input data before it is fed into the model for training or testing. These methods include normalization, augmentation (like rotation, translation, flipping), and others, depending on the specific needs of the dataset and model.
Train Transforms: Applied to the dataset during the training phase. They are generally used for data augmentation to introduce variety in the dataset, which helps prevent overfitting and improves the model's generalization.
Test Transforms: Applied to the dataset during the testing or validation phase. These are usually lighter and consistent, mainly used for preparing the data in a specific format or scale that the model expects.
You can implement these as JSON Objects.
Example :
Some useful info on where to get started :
This is just some initial thoughts on how i would try to get started on this:
Backend
Here is an example of how you can modify the imageTrain function:
In this example, apply_transforms is a function that applies the transforms to the data. You need to implement this function according to your specific needs.
Frontend
In the frontend, you need to add fields for users to specify the transforms in the UI. This can be done in the ImageParametersStep.tsx file.
You already have TrainTransformComponent and TestTransformComponent components for handling the transformations. You can add fields in these components for users to specify the transforms.
Some helpful file-finding info:
In the frontend, The test and train transforms are located in the ImageParametersStep.tsx file in the frontend codebase. The TrainTransformComponent and TestTransformComponent are the components that handle the transformations for the training and testing data respectively.
In the backend, our image params are under ...image/schemas.py and our image training is under ...image/image.py
Requirements Optional Parameters for Transforms: The frontend should allow users to specify train and test transforms for their datasets. These parameters should be optional to maintain flexibility for users who may not need this feature.
API Adaptation: The API needs to be capable of ingesting train and test transforms, not only for user-defined datasets but also for default datasets. This ensures consistency and flexibility across different types of dataset inputs.
Backward Compatibility: Ensure that the changes are backward compatible with the existing system and do not disrupt current functionalities.
Testing: Implement testing via Postman + MNIST or CIFAR dataset to make sure the endpoint works well with the new changes.