gimseng / 99-ML-Learning-Projects

A list of 99 machine learning projects for anyone interested to learn from coding and building projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[EXE] How to write a custom training loop from scratch in Tensorflow(v2.3).

sanchitvj opened this issue · comments

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
For the people who want to learn the Tensorflow framework and get the experience of how to use it from scratch.

Describe the solution you'd like
A clear and concise description of what you want to happen.
I've recently done a project in which I entirely wrote code by myself. It will help people to deal with the situation when they've to write a training loop from scratch. I've done an image dehazing project in which the data set is images.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
So in that project, I've explained how to deal when dataset and labels both are images, in this case, hazy images are input and original images are labels. The code is in Tensorflow version 2.3.

Additional context
Add any other context or screenshots about the feature request here.
Link to repo: https://github.com/sanchitvj/Image-Dehazing-using-GMAN-net

Hi @sanchitvj thanks for the suggestion. I assume you meant to propose a GMAN net exercise ?
I didn't quite get what you meant by "write a custom training loop".

Yes, you got my point, let me clarify your doubt. I meant here is to explain how to write a training loop by ourselves in the situations when we can't use fit, predict with dataset in Tensorflow. Like sometimes in situations when our dataset is semi-supervised learning based so we have to write a training loop by ourselves. Example: check here. So can I fork your repository @gimseng and send a pull request with my code.

@sanchitvj I see, I got what you meant. That sounds like a nice illustration of the training loop.

Do read the guidelines for contributions and take a look at some of our previous projects so to understand how to organize and format your PR. Thanks !

@gimseng I've sent the PR. Can you please check if it is suitably organized for merging?