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

Training the network from scratch: Training, Validation Loss & Metric #5

Open
iamsharmatul opened this issue Dec 9, 2021 · 0 comments

Comments

@iamsharmatul
Copy link

Dear @zhangjun001,

I am using your network for my research. I want to learn about the network therefore I have some questions.

  1. Loss:

I am curious to know how did you compute validation loss while training. As I see in the code that the training loop is based on steps(iteration) and not on epochs. so did you compute validation loss for each step ? if yes which of the following example did you use.

Example:

  1. after each step validation_data_gen will load all the validation samples and the mean loss will be logged for all 4 losses.
  2. after each step one pair from validation_data_gen will be used to calculate the validation loss for all 4 losses.

If there is some other strategy could you please share?

  1. Training:

The network is trained on all possible pairs of combinations of the dataset. Is this the best practice? or we can use epochs and steps_per_epoch setting where data generator returns any 2 random images.

  1. Metric:
    Should I only use metrics during testing or can I use some custom metrics during training as well just to log the performance of the network step by step?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant