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

Feature 1057 - Add test and train transforms for image API in the backend #1146

Open
wants to merge 5 commits into
base: nextjs
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
302 changes: 151 additions & 151 deletions .github/Architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,16 @@
```
📦 training
| |- 📂 training:
| | |- 📂 core:
| | | |- 📜 dataset.py : read in the dataset through URL or file upload
| | | |- 📜 criterion.py
| | | |- 📜 optimizer.py : what optimizer to use (ie: SGD or Adam for now)
| | | |- 📜 __init__.py
| | | |- 📜 dl_model.py : torch model based on user specifications from drag and drop
| | | |- 📜 trainer.py
| | | |- 📜 authenticator.py
| | |- 📂 routes:
| | | |- 📂 image:
| | | | |- 📜 schemas.py
| | | | |- 📜 __init__.py
| | | | |- 📜 image.py
| | | |- 📂 datasets:
| | | | |- 📂 default:
| | | | | |- 📜 schemas.py
| | | | | |- 📜 __init__.py
| | | | | |- 📜 columns.py
| | | | |- 📜 __init__.py
| | | |- 📂 image:
| | | | |- 📜 image.py
| | | | |- 📜 schemas.py
| | | | | |- 📜 __init__.py
| | | | |- 📜 __init__.py
| | | |- 📂 tabular:
| | | | |- 📜 tabular.py
Expand All @@ -33,198 +25,206 @@
| | |- 📂 middleware:
| | | |- 📜 health_check_middleware.py
| | | |- 📜 __init__.py
| | |- 📂 core:
| | | |- 📜 optimizer.py : what optimizer to use (ie: SGD or Adam for now)
| | | |- 📜 criterion.py
| | | |- 📜 dl_model.py : torch model based on user specifications from drag and drop
| | | |- 📜 dataset.py : read in the dataset through URL or file upload
| | | |- 📜 authenticator.py
| | | |- 📜 __init__.py
| | | |- 📜 trainer.py
| | |- 📜 wsgi.py
| | |- 📜 settings.py
| | |- 📜 urls.py
| | |- 📜 asgi.py
| | |- 📜 __init__.py
| | |- 📜 wsgi.py
| | |- 📜 settings.py
| |- 📜 README.md
| |- 📜 docker-compose.prod.yml
| |- 📜 pytest.ini
| |- 📜 poetry.lock
| |- 📜 cli.py
| |- 📜 README.md
| |- 📜 Dockerfile.prod
| |- 📜 pyproject.toml
| |- 📜 environment.yml
| |- 📜 docker-compose.yml
| |- 📜 poetry.lock
| |- 📜 Dockerfile
| |- 📜 Dockerfile.prod
| |- 📜 manage.py
| |- 📜 docker-compose.yml
| |- 📜 docker-compose.prod.yml
| |- 📜 environment.yml
```

## Frontend Architecture

```
📦 frontend
| |- 📂 public:
| | |- 📂 images:
| | | |- 📂 learn_mod_images:
| | | | |- 📜 LeakyReLUactivation.png
| | | | |- 📜 neuralnet.png
| | | | |- 📜 tanhactivation.png
| | | | |- 📜 lossExample.png
| | | | |- 📜 sigmoidfunction.png
| | | | |- 📜 neuron.png
| | | | |- 📜 ReLUactivation.png
| | | | |- 📜 sigmoidactivation.png
| | | | |- 📜 lossExampleEquation.png
| | | | |- 📜 neuronWithEquation.png
| | | | |- 📜 robotImage.jpg
| | | | |- 📜 binarystepactivation.png
| | | | |- 📜 lossExampleTable.png
| | | |- 📂 wiki_images:
| | | | |- 📜 avgpool_maxpool.gif
| | | | |- 📜 tanh_equation.png
| | | | |- 📜 maxpool2d.gif
| | | | |- 📜 dropout_diagram.png
| | | | |- 📜 batchnorm_diagram.png
| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation
| | | | |- 📜 tanh_plot.png
| | | | |- 📜 sigmoid_equation.png
| | | | |- 📜 conv2d.gif
| | | | |- 📜 conv2d2.gif
| | | |- 📂 logos:
| | | | |- 📂 dlp_branding:
| | | | | |- 📜 dlp-logo.svg : DLP Logo, duplicate of files in public, but essential as the frontend can't read public
| | | | | |- 📜 dlp-logo.png : DLP Logo, duplicate of files in public, but essential as the frontend can't read public
| | | | |- 📜 pytorch-logo.png
| | | | |- 📜 dsgt-logo-dark.png
| | | | |- 📜 flask-logo.png
| | | | |- 📜 dsgt-logo-light.png
| | | | |- 📜 aws-logo.png
| | | | |- 📜 github.png
| | | | |- 📜 google.png
| | | | |- 📜 pandas-logo.png
| | | | |- 📜 python-logo.png
| | | | |- 📜 dsgt-logo-white-back.png
| | | | |- 📜 react-logo.png
| | | |- 📜 demo_video.gif : GIF tutorial of a simple classification training session
| | |- 📜 dlp-logo.ico : DLP Logo
| | |- 📜 manifest.json : Default React file for choosing icon based on
| | |- 📜 index.html : Base HTML file that will be initially rendered
| | |- 📜 robots.txt
| |- 📂 layer_docs:
| | |- 📜 Linear.md : Doc for Linear layer
| | |- 📜 Softmax.md : Doc for Softmax layer
| | |- 📜 ReLU.md : Doc for ReLU later
| | |- 📜 softmax_equation.png : PNG file of Softmax equation
| |- 📂 src:
| | |- 📂 pages:
| | | |- 📂 train:
| | | | |- 📜 [train_space_id].tsx
| | | | |- 📜 index.tsx
| | | |- 📜 settings.tsx
| | | |- 📜 feedback.tsx
| | | |- 📜 forgot.tsx
| | | |- 📜 learn.tsx
| | | |- 📜 dashboard.tsx
| | | |- 📜 login.tsx
| | | |- 📜 _document.tsx
| | | |- 📜 _app.tsx
| | | |- 📜 about.tsx
| | | |- 📜 wiki.tsx
| | | |- 📜 LearnContent.tsx
| | |- 📂 features:
| | | |- 📂 Feedback:
| | | | |- 📂 redux:
| | | | | |- 📜 feedbackApi.ts
| | | |- 📂 Dashboard:
| | | | |- 📂 redux:
| | | | | |- 📜 dashboardApi.ts
| | | | |- 📂 components:
| | | | | |- 📜 TrainDataGrid.tsx
| | | | | |- 📜 TrainBarChart.tsx
| | | | | |- 📜 TrainDoughnutChart.tsx
| | | |- 📂 LearnMod:
| | | | |- 📜 FRQuestion.tsx
| | | | |- 📜 MCQuestion.tsx
| | | | |- 📜 ClassCard.tsx
| | | | |- 📜 ImageComponent.tsx
| | | | |- 📜 LearningModulesContent.tsx
| | | | |- 📜 ModulesSideBar.tsx
| | | | |- 📜 Exercise.tsx
| | | |- 📂 Feedback:
| | | | |- 📂 redux:
| | | | | |- 📜 dashboardApi.ts
| | | | | |- 📜 feedbackApi.ts
| | | |- 📂 Train:
| | | | |- 📂 constants:
| | | | | |- 📜 trainConstants.ts
| | | | |- 📂 components:
| | | | | |- 📜 DatasetStepLayout.tsx
| | | | | |- 📜 CreateTrainspace.tsx
| | | | | |- 📜 TrainspaceLayout.tsx
| | | | |- 📂 redux:
| | | | | |- 📜 trainspaceApi.ts
| | | | | |- 📜 trainspaceSlice.ts
| | | | |- 📂 features:
| | | | | |- 📂 Image:
| | | | | | |- 📂 constants:
| | | | | | | |- 📜 imageConstants.ts
| | | | | | |- 📂 components:
| | | | | | | |- 📜 ImageTrainspace.tsx
| | | | | | | |- 📜 ImageFlow.tsx
| | | | | | | |- 📜 ImageReviewStep.tsx
| | | | | | | |- 📜 ImageParametersStep.tsx
| | | | | | | |- 📜 ImageDatasetStep.tsx
| | | | | | |- 📂 redux:
| | | | | | | |- 📜 imageApi.ts
| | | | | | | |- 📜 imageActions.ts
| | | | | | |- 📂 types:
| | | | | | | |- 📜 imageTypes.ts
| | | | | | |- 📜 index.ts
| | | | | |- 📂 Tabular:
| | | | | | |- 📂 redux:
| | | | | | | |- 📜 tabularActions.ts
| | | | | | | |- 📜 tabularApi.ts
| | | | | | |- 📂 constants:
| | | | | | | |- 📜 tabularConstants.ts
| | | | | | |- 📂 types:
| | | | | | | |- 📜 tabularTypes.ts
| | | | | | |- 📂 components:
| | | | | | | |- 📜 TabularTrainspace.tsx
| | | | | | | |- 📜 TabularFlow.tsx
| | | | | | | |- 📜 TabularParametersStep.tsx
| | | | | | | |- 📜 TabularTrainspace.tsx
| | | | | | | |- 📜 TabularDatasetStep.tsx
| | | | | | | |- 📜 TabularFlow.tsx
| | | | | | | |- 📜 TabularReviewStep.tsx
| | | | | | |- 📜 index.ts
| | | | | |- 📂 Image:
| | | | | | |- 📂 redux:
| | | | | | | |- 📜 tabularActions.ts
| | | | | | | |- 📜 tabularApi.ts
| | | | | | | |- 📜 imageApi.ts
| | | | | | | |- 📜 imageActions.ts
| | | | | | |- 📂 constants:
| | | | | | | |- 📜 imageConstants.ts
| | | | | | |- 📂 types:
| | | | | | | |- 📜 tabularTypes.ts
| | | | | | | |- 📜 imageTypes.ts
| | | | | | |- 📂 components:
| | | | | | | |- 📜 ImageReviewStep.tsx
| | | | | | | |- 📜 ImageFlow.tsx
| | | | | | | |- 📜 ImageParametersStep.tsx
| | | | | | | |- 📜 ImageDatasetStep.tsx
| | | | | | | |- 📜 ImageTrainspace.tsx
| | | | | | |- 📜 index.ts
| | | | |- 📂 constants:
| | | | | |- 📜 trainConstants.ts
| | | | |- 📂 types:
| | | | | |- 📜 trainTypes.ts
| | | | |- 📂 components:
| | | | | |- 📜 CreateTrainspace.tsx
| | | | | |- 📜 DatasetStepLayout.tsx
| | | | | |- 📜 TrainspaceLayout.tsx
| | | |- 📂 OpenAi:
| | | | |- 📜 openAiUtils.ts
| | | |- 📂 LearnMod:
| | | | |- 📜 ModulesSideBar.tsx
| | | | |- 📜 Exercise.tsx
| | | | |- 📜 LearningModulesContent.tsx
| | | | |- 📜 FRQuestion.tsx
| | | | |- 📜 ImageComponent.tsx
| | | | |- 📜 ClassCard.tsx
| | | | |- 📜 MCQuestion.tsx
| | |- 📂 backend_outputs:
| | | |- 📜 model.pkl
| | | |- 📜 my_deep_learning_model.onnx : Last ONNX file output
| | | |- 📜 model.pt : Last model.pt output
| | |- 📂 common:
| | | |- 📂 components:
| | | | |- 📜 Spacer.tsx
| | | | |- 📜 Footer.tsx
| | | | |- 📜 DlpTooltip.tsx
| | | | |- 📜 EmailInput.tsx
| | | | |- 📜 HtmlTooltip.tsx
| | | | |- 📜 NavBarMain.tsx
| | | | |- 📜 TitleText.tsx
| | | | |- 📜 ClientOnlyPortal.tsx
| | | |- 📂 styles:
| | | | |- 📜 globals.css
| | | | |- 📜 Home.module.css
| | | |- 📂 redux:
| | | | |- 📜 store.ts
| | | | |- 📜 train.ts
| | | | |- 📜 userLogin.ts
| | | | |- 📜 store.ts
| | | | |- 📜 hooks.ts
| | | | |- 📜 backendApi.ts
| | | | |- 📜 train.ts
| | | |- 📂 utils:
| | | | |- 📜 dateFormat.ts
| | | | |- 📜 firebase.ts
| | | | |- 📜 dndHelpers.ts
| | | |- 📂 styles:
| | | | |- 📜 Home.module.css
| | | | |- 📜 globals.css
| | |- 📜 next-env.d.ts
| | |- 📜 GlobalStyle.ts
| | |- 📜 iris.csv : Sample CSV data
| | | | |- 📜 dateFormat.ts
| | | |- 📂 components:
| | | | |- 📜 NavBarMain.tsx
| | | | |- 📜 Footer.tsx
| | | | |- 📜 ClientOnlyPortal.tsx
| | | | |- 📜 Spacer.tsx
| | | | |- 📜 EmailInput.tsx
| | | | |- 📜 TitleText.tsx
| | | | |- 📜 HtmlTooltip.tsx
| | | | |- 📜 DlpTooltip.tsx
| | |- 📂 backend_outputs:
| | | |- 📜 model.pkl
| | | |- 📜 my_deep_learning_model.onnx : Last ONNX file output
| | | |- 📜 model.pt : Last model.pt output
| | |- 📂 pages:
| | | |- 📂 train:
| | | | |- 📜 [train_space_id].tsx
| | | | |- 📜 index.tsx
| | | |- 📜 login.tsx
| | | |- 📜 feedback.tsx
| | | |- 📜 _app.tsx
| | | |- 📜 forgot.tsx
| | | |- 📜 learn.tsx
| | | |- 📜 LearnContent.tsx
| | | |- 📜 settings.tsx
| | | |- 📜 dashboard.tsx
| | | |- 📜 about.tsx
| | | |- 📜 wiki.tsx
| | | |- 📜 _document.tsx
| | |- 📜 constants.ts
| |- 📂 layer_docs:
| | |- 📜 softmax_equation.png : PNG file of Softmax equation
| | |- 📜 Linear.md : Doc for Linear layer
| | |- 📜 Softmax.md : Doc for Softmax layer
| | |- 📜 ReLU.md : Doc for ReLU later
| |- 📂 public:
| | |- 📂 images:
| | | |- 📂 wiki_images:
| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation
| | | | |- 📜 tanh_plot.png
| | | | |- 📜 conv2d.gif
| | | | |- 📜 conv2d2.gif
| | | | |- 📜 avgpool_maxpool.gif
| | | | |- 📜 sigmoid_equation.png
| | | | |- 📜 batchnorm_diagram.png
| | | | |- 📜 maxpool2d.gif
| | | | |- 📜 tanh_equation.png
| | | | |- 📜 dropout_diagram.png
| | | |- 📂 learn_mod_images:
| | | | |- 📜 neuronWithEquation.png
| | | | |- 📜 robotImage.jpg
| | | | |- 📜 neuralnet.png
| | | | |- 📜 sigmoidactivation.png
| | | | |- 📜 lossExample.png
| | | | |- 📜 binarystepactivation.png
| | | | |- 📜 tanhactivation.png
| | | | |- 📜 LeakyReLUactivation.png
| | | | |- 📜 sigmoidfunction.png
| | | | |- 📜 lossExampleTable.png
| | | | |- 📜 lossExampleEquation.png
| | | | |- 📜 neuron.png
| | | | |- 📜 ReLUactivation.png
| | | |- 📂 logos:
| | | | |- 📂 dlp_branding:
| | | | | |- 📜 dlp-logo.svg : DLP Logo, duplicate of files in public, but essential as the frontend can't read public
| | | | | |- 📜 dlp-logo.png : DLP Logo, duplicate of files in public, but essential as the frontend can't read public
| | | | |- 📜 dsgt-logo-white-back.png
| | | | |- 📜 pytorch-logo.png
| | | | |- 📜 google.png
| | | | |- 📜 flask-logo.png
| | | | |- 📜 dsgt-logo-dark.png
| | | | |- 📜 pandas-logo.png
| | | | |- 📜 dsgt-logo-light.png
| | | | |- 📜 github.png
| | | | |- 📜 react-logo.png
| | | | |- 📜 python-logo.png
| | | | |- 📜 aws-logo.png
| | | |- 📜 demo_video.gif : GIF tutorial of a simple classification training session
| | |- 📜 manifest.json : Default React file for choosing icon based on
| | |- 📜 dlp-logo.ico : DLP Logo
| | |- 📜 index.html : Base HTML file that will be initially rendered
| | |- 📜 robots.txt
| |- 📜 .eslintrc.json
| | |- 📜 iris.csv : Sample CSV data
| | |- 📜 GlobalStyle.ts
| | |- 📜 next-env.d.ts
| |- 📜 .eslintignore
| |- 📜 tsconfig.json
| |- 📜 .eslintrc.json
| |- 📜 pnpm-lock.yaml
| |- 📜 jest.config.js
| |- 📜 package.json
| |- 📜 next.config.js
| |- 📜 jest.config.js
| |- 📜 next-env.d.ts
| |- 📜 tsconfig.json
```

Loading