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

WandB callback does not record enough information #121

Open
lyangfan opened this issue Dec 7, 2023 · 4 comments
Open

WandB callback does not record enough information #121

lyangfan opened this issue Dec 7, 2023 · 4 comments
Labels
enhancement New feature or request feature request

Comments

@lyangfan
Copy link

lyangfan commented Dec 7, 2023

Hi:
I want to get the train log, train loss plot, val loss plot and lr plot using WandB callback. But it seems that I just can get PART of training log.
I just follow the tutorial code:

        callbacks = []
        wandb_cb = WandbCallback()  
        wandb_cb.setup(
            training_config=training_config,
            model_config=model_config,
            project_name=args.wandb_project_name,
        )
        pipeline(train_data=train_ds,
                eval_data=val_ds,
                callbacks=callbacks)

image

and no online loss plot:
image

Looking forward to your reply

Yangfan
2023.12.7

@lyangfan
Copy link
Author

lyangfan commented Dec 7, 2023

PLUS: Sometimes I want to monitor the reconstruction loss and KL Divergence separately, not just total loss. So I need to finish my own callback?

@clementchadebec
Copy link
Owner

Hi @lyangfan ,

Thanks for the question, I think it is due to the fact that the logs are provided to the callback at the end of an epoch. This is indeed suboptimal and it would be better to define a batch_frequency variable instead to log throughout a training step. I will try to improve this soon.

@clementchadebec
Copy link
Owner

As to the custom metrics you have indeed to provide your own callback following the template in pythae.trainers.training_callbacks since the code does not support custom metric selection for now.

@lyangfan
Copy link
Author

lyangfan commented Dec 9, 2023

As to the custom metrics you have indeed to provide your own callback following the template in pythae.trainers.training_callbacks since the code does not support custom metric selection for now.

Thank you for your patient answer and look forward to your improvement. I will try the solution you give

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

No branches or pull requests

2 participants